From efb4ad735691837a52447bedc1a66a87d0d9af51 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 20 Jul 2012 14:27:38 -0400 Subject: [PATCH] Fix compiler warnings If x is not constant, we cannot ASSERT_STATIC on it. --- src/hb-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index bdfd3f5..3f710ed 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -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)) -- 2.7.4