]> granicus.if.org Git - icu/commitdiff
ICU-8310 Fix missing parenthesis
authorMichael Ow <mow@svn.icu-project.org>
Thu, 11 Aug 2011 18:45:09 +0000 (18:45 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 11 Aug 2011 18:45:09 +0000 (18:45 +0000)
X-SVN-Rev: 30485

icu4c/source/layout/ExtensionSubtables.cpp

index 5da918daa3eb21e1a9b106d8a4d416201b04b983..813caeb3708fed0262bd732e3cb54d9f781382c0 100644 (file)
@@ -19,7 +19,7 @@ U_NAMESPACE_BEGIN
 static inline le_uint32 READ_LONG(le_uint32 code) {
     le_uint16* first = ((le_uint16*)&code);
     le_uint16* second = (((le_uint16*)&code) + 1);
-    return (le_uint32)(SWAPW(*first << 16) + SWAPW(*second));
+    return (le_uint32)((SWAPW(*first) << 16) + SWAPW(*second));
 }
 
 // FIXME: should look at the format too... maybe have a sub-class for it?