From 96908b898476ca5d7da5f386b15be76f9e83d76e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 24 May 2009 12:30:40 -0400 Subject: [PATCH] [HB] Add FixedVersion cast to int --- src/hb-ot-layout-open-private.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-layout-open-private.h b/src/hb-ot-layout-open-private.h index 0955c6fe..91aacfcf 100644 --- a/src/hb-ot-layout-open-private.h +++ b/src/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; }; -- GitLab