[pango/harfbuzz-ng] [HB] Add FixedVersion cast to int



commit d11f8e6d41213d38b2b3ea2ec4843e2b6f34697b
Author: Behdad Esfahbod <behdad behdad org>
Date:   Sun May 24 12:30:40 2009 -0400

    [HB] Add FixedVersion cast to int
---
 pango/opentype/hb-ot-layout-open-private.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pango/opentype/hb-ot-layout-open-private.h b/pango/opentype/hb-ot-layout-open-private.h
index 0955c6f..91aacfc 100644
--- a/pango/opentype/hb-ot-layout-open-private.h
+++ b/pango/opentype/hb-ot-layout-open-private.h
@@ -293,6 +293,8 @@ ASSERT_SIZE (CheckSum, 4);
 
 struct FixedVersion
 {
+  inline operator uint32_t(void) const { return major << 16 + minor; }
+
   SHORT  major;
   USHORT minor;
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]