Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_14469' into 'master'
Browse files Browse the repository at this point in the history
fix(spinlock): comparison of integer expressions of different signedness (GitHub PR)

Closes IDFGH-13581

See merge request espressif/esp-idf!33272
  • Loading branch information
KonstantinKondrashov committed Sep 14, 2024
2 parents c45e084 + 681b372 commit 1489514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_hw_support/include/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static inline bool __attribute__((always_inline)) spinlock_acquire(spinlock_t *l
break;
}
// Keep looping if we are waiting forever, or check if we have timed out
} while ((timeout == SPINLOCK_WAIT_FOREVER) || (esp_cpu_get_cycle_count() - start_count) <= timeout);
} while ((timeout == SPINLOCK_WAIT_FOREVER) || (esp_cpu_get_cycle_count() - start_count) <= (esp_cpu_cycle_count_t)timeout);

exit:
if (lock_set) {
Expand Down

0 comments on commit 1489514

Please sign in to comment.