[HB] Add FixedVersion cast to int
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 24 May 2009 16:30:40 +0000 (12:30 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Nov 2009 19:40:17 +0000 (14:40 -0500)
src/hb-ot-layout-open-private.h

index 0955c6f..91aacfc 100644 (file)
@@ -293,6 +293,8 @@ ASSERT_SIZE (CheckSum, 4);
 
 struct FixedVersion
 {
+  inline operator uint32_t(void) const { return major << 16 + minor; }
+
   SHORT  major;
   USHORT minor;
 };