[pango] [HB] Fix buffer sizing issue with mingw gcc
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] [HB] Fix buffer sizing issue with mingw gcc
- Date: Thu, 13 Aug 2009 09:23:47 +0000 (UTC)
commit 87f9fedcd27baa62043cb59b03dfd5ce0a9214db
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Aug 13 05:20:46 2009 -0400
[HB] Fix buffer sizing issue with mingw gcc
Bit field packing is a delicate field. Issue reported in comment 3 here:
http://bugzilla.gnome.org/show_bug.cgi?id=591511
pango/opentype/hb-buffer-private.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/pango/opentype/hb-buffer-private.h b/pango/opentype/hb-buffer-private.h
index 2d2ea06..0456125 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;
- hb_bool_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 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 */
+ * for drawing current glyph */
short cursive_chain : 16; /* character to which this connects,
- may be positive or negative; used
- only internally */
+ * 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]