diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-02 04:11:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-02 04:11:12 +0300 |
commit | 5400a3120742494281f6cce43545657432a08f25 (patch) | |
tree | be843b338f34ef2d6d474121031a7b57f82f677b /src/utils/buildhex.h | |
parent | ecae89e342fc07daa816fe7de133968a51745040 (diff) | |
download | ManaVerse-5400a3120742494281f6cce43545657432a08f25.tar.gz ManaVerse-5400a3120742494281f6cce43545657432a08f25.tar.bz2 ManaVerse-5400a3120742494281f6cce43545657432a08f25.tar.xz ManaVerse-5400a3120742494281f6cce43545657432a08f25.zip |
Add some missing brackets in macroses.
Diffstat (limited to 'src/utils/buildhex.h')
-rw-r--r-- | src/utils/buildhex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/buildhex.h b/src/utils/buildhex.h index 49ed4217b..8340acefd 100644 --- a/src/utils/buildhex.h +++ b/src/utils/buildhex.h @@ -36,13 +36,13 @@ PRAGMA48(GCC diagnostic pop) #if SDL_BYTEORDER == SDL_BIG_ENDIAN #define buildHex(a, b, c, d) \ - (d) * 16777216U + (c) * 65536U + (b) * 256U + CAST_U32(a) + ((d) * 16777216U + (c) * 65536U + (b) * 256U + CAST_U32(a)) #else // SDL_BYTEORDER == SDL_BIG_ENDIAN #define buildHex(a, b, c, d) \ - (a) * 16777216U + (b) * 65536U + (c) * 256U + CAST_U32(d) + ((a) * 16777216U + (b) * 65536U + (c) * 256U + CAST_U32(d)) #endif // SDL_BYTEORDER == SDL_BIG_ENDIAN #define buildHexOgl(a, b, c, d) \ - (a) * 16777216U + (b) * 65536U + (c) * 256U + CAST_U32(d) + ((a) * 16777216U + (b) * 65536U + (c) * 256U + CAST_U32(d)) #endif // UTILS_BUILDHEX_H |