Fix compiler warnings

If x is not constant, we cannot ASSERT_STATIC on it.
This commit is contained in:
Behdad Esfahbod 2012-07-20 14:27:38 -04:00
parent f31d97e44e
commit efb4ad7356

View File

@ -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))