summaryrefslogtreecommitdiff
path: root/src/hb-set-digest.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/hb-set-digest.hh')
-rw-r--r--src/hb-set-digest.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hb-set-digest.hh b/src/hb-set-digest.hh
index 4cd7c3ff..0f9329f6 100644
--- a/src/hb-set-digest.hh
+++ b/src/hb-set-digest.hh
@@ -50,8 +50,8 @@ struct hb_set_digest_lowest_bits_t
{
ASSERT_POD ();
- static const unsigned int mask_bytes = sizeof (mask_t);
- static const unsigned int mask_bits = sizeof (mask_t) * 8;
+ enum { mask_bytes = sizeof (mask_t) };
+ enum { mask_bits = sizeof (mask_t) * 8 };
static const unsigned int num_bits = 0
+ (mask_bytes >= 1 ? 3 : 0)
+ (mask_bytes >= 2 ? 1 : 0)