From 11fb16cb849285a178d9e80991b1d60a960326ee Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 17 Oct 2013 20:57:57 +0200 Subject: [PATCH] Use unsigned enums for mask types --- src/hb-buffer.h | 16 ++++++++-------- src/hb-ot-layout-private.hh | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 87c4ce58e..3086851b0 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -172,10 +172,10 @@ hb_buffer_guess_segment_properties (hb_buffer_t *buffer); typedef enum { /*< flags >*/ - HB_BUFFER_FLAG_DEFAULT = 0x00000000, - HB_BUFFER_FLAG_BOT = 0x00000001, /* Beginning-of-text */ - HB_BUFFER_FLAG_EOT = 0x00000002, /* End-of-text */ - HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004 + HB_BUFFER_FLAG_DEFAULT = 0x00000000u, + HB_BUFFER_FLAG_BOT = 0x00000001u, /* Beginning-of-text */ + HB_BUFFER_FLAG_EOT = 0x00000002u, /* End-of-text */ + HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004u } hb_buffer_flags_t; void @@ -275,10 +275,10 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer); */ typedef enum { /*< flags >*/ - HB_BUFFER_SERIALIZE_FLAG_DEFAULT = 0x00000000, - HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001, - HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002, - HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004 + HB_BUFFER_SERIALIZE_FLAG_DEFAULT = 0x00000000u, + HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001u, + HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002u, + HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004u } hb_buffer_serialize_flags_t; typedef enum { diff --git a/src/hb-ot-layout-private.hh b/src/hb-ot-layout-private.hh index 92d7bdc0a..9a4d6d8b9 100644 --- a/src/hb-ot-layout-private.hh +++ b/src/hb-ot-layout-private.hh @@ -49,10 +49,10 @@ enum { - MASK0_ZWJ = 0x20, - MASK0_ZWNJ = 0x40, - MASK0_IGNORABLE = 0x80, - MASK0_GEN_CAT = 0x1F + MASK0_ZWJ = 0x20u, + MASK0_ZWNJ = 0x40u, + MASK0_IGNORABLE = 0x80u, + MASK0_GEN_CAT = 0x1Fu }; inline void