[HB] Fix pedantic warnings
This commit is contained in:
parent
3e09722214
commit
864e2560b6
|
@ -36,7 +36,7 @@ typedef enum {
|
||||||
HB_MEMORY_MODE_READONLY,
|
HB_MEMORY_MODE_READONLY,
|
||||||
HB_MEMORY_MODE_WRITEABLE,
|
HB_MEMORY_MODE_WRITEABLE,
|
||||||
HB_MEMORY_MODE_READONLY_NEVER_DUPLICATE,
|
HB_MEMORY_MODE_READONLY_NEVER_DUPLICATE,
|
||||||
HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITEABLE,
|
HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITEABLE
|
||||||
} hb_memory_mode_t;
|
} hb_memory_mode_t;
|
||||||
|
|
||||||
typedef struct _hb_blob_t hb_blob_t;
|
typedef struct _hb_blob_t hb_blob_t;
|
||||||
|
|
|
@ -50,15 +50,15 @@ typedef struct _hb_internal_glyph_position_t {
|
||||||
hb_position_t y_pos;
|
hb_position_t y_pos;
|
||||||
hb_position_t x_advance;
|
hb_position_t x_advance;
|
||||||
hb_position_t y_advance;
|
hb_position_t y_advance;
|
||||||
unsigned short new_advance :1; /* if set, the advance width values are
|
uint32_t new_advance :1; /* if set, the advance width values are
|
||||||
* absolute, i.e., they won't be
|
absolute, i.e., they won't be
|
||||||
* added to the original glyph's value
|
added to the original glyph's value
|
||||||
* but rather replace them */
|
but rather replace them */
|
||||||
unsigned short back : 15; /* number of glyphs to go back
|
uint32_t back : 15; /* number of glyphs to go back
|
||||||
* for drawing current glyph */
|
for drawing current glyph */
|
||||||
short cursive_chain : 16; /* character to which this connects,
|
int32_t cursive_chain : 16; /* character to which this connects,
|
||||||
* may be positive or negative; used
|
may be positive or negative; used
|
||||||
* only internally */
|
only internally */
|
||||||
} hb_internal_glyph_position_t;
|
} hb_internal_glyph_position_t;
|
||||||
|
|
||||||
ASSERT_STATIC (sizeof (hb_glyph_info_t) == sizeof (hb_internal_glyph_info_t));
|
ASSERT_STATIC (sizeof (hb_glyph_info_t) == sizeof (hb_internal_glyph_info_t));
|
||||||
|
|
|
@ -56,13 +56,13 @@ typedef struct _hb_glyph_position_t {
|
||||||
hb_position_t x_advance;
|
hb_position_t x_advance;
|
||||||
hb_position_t y_advance;
|
hb_position_t y_advance;
|
||||||
/* XXX these should all be replaced by "uint32_t internal" */
|
/* XXX these should all be replaced by "uint32_t internal" */
|
||||||
unsigned short new_advance :1; /* if set, the advance width values are
|
uint32_t new_advance :1; /* if set, the advance width values are
|
||||||
absolute, i.e., they won't be
|
absolute, i.e., they won't be
|
||||||
added to the original glyph's value
|
added to the original glyph's value
|
||||||
but rather replace them */
|
but rather replace them */
|
||||||
unsigned short back : 15; /* number of glyphs to go back
|
uint32_t back : 15; /* number of glyphs to go back
|
||||||
for drawing current glyph */
|
for drawing current glyph */
|
||||||
short cursive_chain : 16; /* character to which this connects,
|
int32_t cursive_chain : 16; /* character to which this connects,
|
||||||
may be positive or negative; used
|
may be positive or negative; used
|
||||||
only internally */
|
only internally */
|
||||||
} hb_glyph_position_t;
|
} hb_glyph_position_t;
|
||||||
|
|
Loading…
Reference in New Issue