summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-18 16:38:48 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-18 16:38:48 -0400
commitf397c67d5b23b35b6488c00b821f727d2e67cab4 (patch)
tree9fb6a5ea75c22e01cec96484d94951ca246373ff
parent6ace51e45c90184fe62ad3efbb0d84fd8e415fde (diff)
downloadpango-f397c67d5b23b35b6488c00b821f727d2e67cab4.tar.gz
[HB] Fix pedantic warnings
-rw-r--r--pango/opentype/hb-blob.h2
-rw-r--r--pango/opentype/hb-buffer-private.h18
-rw-r--r--pango/opentype/hb-buffer.h6
3 files changed, 13 insertions, 13 deletions
diff --git a/pango/opentype/hb-blob.h b/pango/opentype/hb-blob.h
index 193da1d4..1dd26f42 100644
--- a/pango/opentype/hb-blob.h
+++ b/pango/opentype/hb-blob.h
@@ -36,7 +36,7 @@ typedef enum {
HB_MEMORY_MODE_READONLY,
HB_MEMORY_MODE_WRITEABLE,
HB_MEMORY_MODE_READONLY_NEVER_DUPLICATE,
- HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITEABLE,
+ HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITEABLE
} hb_memory_mode_t;
typedef struct _hb_blob_t hb_blob_t;
diff --git a/pango/opentype/hb-buffer-private.h b/pango/opentype/hb-buffer-private.h
index 04561252..45cdc4de 100644
--- a/pango/opentype/hb-buffer-private.h
+++ b/pango/opentype/hb-buffer-private.h
@@ -50,15 +50,15 @@ typedef struct _hb_internal_glyph_position_t {
hb_position_t y_pos;
hb_position_t x_advance;
hb_position_t y_advance;
- unsigned short new_advance :1; /* if set, the advance width values are
- * absolute, i.e., they won't be
- * added to the original glyph's value
- * but rather replace them */
- unsigned short back : 15; /* number of glyphs to go back
- * for drawing current glyph */
- short cursive_chain : 16; /* character to which this connects,
- * may be positive or negative; used
- * only internally */
+ uint32_t new_advance :1; /* if set, the advance width values are
+ absolute, i.e., they won't be
+ added to the original glyph's value
+ but rather replace them */
+ uint32_t back : 15; /* number of glyphs to go back
+ for drawing current glyph */
+ int32_t cursive_chain : 16; /* character to which this connects,
+ may be positive or negative; used
+ only internally */
} hb_internal_glyph_position_t;
ASSERT_STATIC (sizeof (hb_glyph_info_t) == sizeof (hb_internal_glyph_info_t));
diff --git a/pango/opentype/hb-buffer.h b/pango/opentype/hb-buffer.h
index f27739f6..93671d05 100644
--- a/pango/opentype/hb-buffer.h
+++ b/pango/opentype/hb-buffer.h
@@ -56,13 +56,13 @@ typedef struct _hb_glyph_position_t {
hb_position_t x_advance;
hb_position_t y_advance;
/* 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
added to the original glyph's value
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 */
- 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
only internally */
} hb_glyph_position_t;