diff options
Diffstat (limited to 'common/bits.c')
| -rw-r--r-- | common/bits.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/bits.c b/common/bits.c index 5691617..d92fd29 100644 --- a/common/bits.c +++ b/common/bits.c @@ -44,6 +44,10 @@ __weak int ffs(int v) if (v == 0) return 0; + /* silence ubsan warning */ + if (v == INT_MIN) + return 32; + int c = 32; v &= -v; |
