diff options
-rw-r--r-- | ident.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -224,14 +224,15 @@ getInt32(fontFile *f, int format) rc = fontFileRead(f, c, 4); if (rc != 4) return -1; - - unsigned int u[4] = { c[0], c[1], c[2], c[3] }; - - if (format & (1 << 2)) { - return (int) ((u[0] << 24) | (u[1] << 16) | (u[2] << 8) | (u[3])); - } else { - return (int) ((u[0]) | (u[1] << 8) | (u[2] << 16) | (u[3] << 24)); + unsigned int u[4] = { c[0], c[1], c[2], c[3] }; + + if (format & (1 << 2)) { + return (int) ((u[0] << 24) | (u[1] << 16) | (u[2] << 8) | (u[3])); + } + else { + return (int) ((u[0]) | (u[1] << 8) | (u[2] << 16) | (u[3] << 24)); + } } } |