Fix a subtle undefined behaviour error.

This commit is contained in:
David Reid
2025-02-23 11:49:31 +10:00
parent c74c90f686
commit 54373128ee
+1 -1
View File
@@ -13932,7 +13932,7 @@ static ma_uint32 ma_ffs_32(ma_uint32 x)
/* Just a naive implementation just to get things working for now. Will optimize this later. */
for (i = 0; i < 32; i += 1) {
if ((x & (1 << i)) != 0) {
if ((x & (1U << i)) != 0) {
return i;
}
}