Use unsigned enums for mask types

This commit is contained in:
Behdad Esfahbod 2013-10-17 20:57:57 +02:00
parent 03058c3d1e
commit 11fb16cb84
2 changed files with 12 additions and 12 deletions

View File

@ -172,10 +172,10 @@ hb_buffer_guess_segment_properties (hb_buffer_t *buffer);
typedef enum { /*< flags >*/ typedef enum { /*< flags >*/
HB_BUFFER_FLAG_DEFAULT = 0x00000000, HB_BUFFER_FLAG_DEFAULT = 0x00000000u,
HB_BUFFER_FLAG_BOT = 0x00000001, /* Beginning-of-text */ HB_BUFFER_FLAG_BOT = 0x00000001u, /* Beginning-of-text */
HB_BUFFER_FLAG_EOT = 0x00000002, /* End-of-text */ HB_BUFFER_FLAG_EOT = 0x00000002u, /* End-of-text */
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004 HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004u
} hb_buffer_flags_t; } hb_buffer_flags_t;
void void
@ -275,10 +275,10 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
*/ */
typedef enum { /*< flags >*/ typedef enum { /*< flags >*/
HB_BUFFER_SERIALIZE_FLAG_DEFAULT = 0x00000000, HB_BUFFER_SERIALIZE_FLAG_DEFAULT = 0x00000000u,
HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001, HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001u,
HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002, HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002u,
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004 HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004u
} hb_buffer_serialize_flags_t; } hb_buffer_serialize_flags_t;
typedef enum { typedef enum {

View File

@ -49,10 +49,10 @@
enum { enum {
MASK0_ZWJ = 0x20, MASK0_ZWJ = 0x20u,
MASK0_ZWNJ = 0x40, MASK0_ZWNJ = 0x40u,
MASK0_IGNORABLE = 0x80, MASK0_IGNORABLE = 0x80u,
MASK0_GEN_CAT = 0x1F MASK0_GEN_CAT = 0x1Fu
}; };
inline void inline void