Merge branch 'contrib/github_pr_14469' into 'master'

fix(spinlock): comparison of integer expressions of different signedness (GitHub PR)

Closes IDFGH-13581

See merge request espressif/esp-idf!33272
This commit is contained in:
Konstantin Kondrashov
2024-09-14 15:34:41 +08:00

View File

@@ -134,7 +134,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) {