Use unsigned in FLAG()

This commit is contained in:
Behdad Esfahbod 2015-07-21 15:05:35 +01:00
parent cf59c7589c
commit 1025e1a9e7
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ hb_in_ranges (T u, T lo1, T hi1, T lo2, T hi2, T lo3, T hi3)
* For example, for testing "x ∈ {x1, x2, x3}" use:
* (FLAG(x) & (FLAG(x1) | FLAG(x2) | FLAG(x3)))
*/
#define FLAG(x) (1<<(x))
#define FLAG(x) (1U<<(x))
#define FLAG_RANGE(x,y) (ASSERT_STATIC_EXPR_ZERO ((x) < (y)) + FLAG(y+1) - FLAG(x))