macro: don't rely on C's downgrade-to-bool feature for numeric comparisons
This commit is contained in:
+1
-1
@@ -350,7 +350,7 @@ static inline unsigned long ALIGN_POWER2(unsigned long u) {
|
||||
({ \
|
||||
typeof(x) _x_ = (x); \
|
||||
unsigned ans = 1; \
|
||||
while (_x_ /= 10) \
|
||||
while ((_x_ /= 10) != 0) \
|
||||
ans++; \
|
||||
ans; \
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user