Fixed warning.
authorArmin Novak <anovak@thincast.com>
Wed, 10 Aug 2016 11:44:55 +0000 (13:44 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 6 Oct 2016 11:43:10 +0000 (13:43 +0200)
libfreerdp/cache/glyph.c

index 4ae5986..60ad331 100644 (file)
@@ -51,7 +51,10 @@ static UINT32 update_glyph_offset(const BYTE* data, UINT32 index, INT32* x,
                UINT32 offset = data[index++];
 
                if (offset & 0x80)
-                       offset = data[index++] | ((UINT32)data[index++]) << 8;
+        {
+            offset = data[index++];
+            offset |= ((UINT32)data[index++]) << 8;
+        }
 
                if (flAccel & SO_VERTICAL)
                        *y += offset;