mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(spinlock): comparison of integer expressions of different signedness
This commit is contained in:
parent
95e16f6a72
commit
bd62dfb21f
@ -132,7 +132,7 @@ static inline bool __attribute__((always_inline)) spinlock_acquire(spinlock_t *l
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Keep looping if we are waiting forever, or check if we have timed out
|
// 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:
|
exit:
|
||||||
if (lock_set) {
|
if (lock_set) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user