mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
Fix a subtle undefined behaviour error.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user