Use unsigned in FLAG()

pull/122/head
Behdad Esfahbod 9 years ago
parent cf59c7589c
commit 1025e1a9e7
  1. 2
      src/hb-private.hh

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

Loading…
Cancel
Save