Fix compiler warnings
If x is not constant, we cannot ASSERT_STATIC on it.
This commit is contained in:
parent
f31d97e44e
commit
efb4ad7356
@ -734,7 +734,7 @@ hb_in_range (T u, T lo, T hi)
|
||||
* For example, for testing "x ∈ {x1, x2, x3}" use:
|
||||
* (FLAG(x) & (FLAG(x1) | FLAG(x2) | FLAG(x3)))
|
||||
*/
|
||||
#define FLAG(x) (ASSERT_STATIC_EXPR_ZERO((x) < 8 * sizeof(int)) + (1<<(x)))
|
||||
#define FLAG(x) (1<<(x))
|
||||
#define FLAG_RANGE(x,y) (ASSERT_STATIC_EXPR_ZERO ((x) < (y)) + FLAG(y+1) - FLAG(x))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user