summaryrefslogtreecommitdiff
path: root/src/utils/buildhex.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-02 04:11:12 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-02 04:11:12 +0300
commit5400a3120742494281f6cce43545657432a08f25 (patch)
treebe843b338f34ef2d6d474121031a7b57f82f677b /src/utils/buildhex.h
parentecae89e342fc07daa816fe7de133968a51745040 (diff)
downloadplus-5400a3120742494281f6cce43545657432a08f25.tar.gz
plus-5400a3120742494281f6cce43545657432a08f25.tar.bz2
plus-5400a3120742494281f6cce43545657432a08f25.tar.xz
plus-5400a3120742494281f6cce43545657432a08f25.zip
Add some missing brackets in macroses.
Diffstat (limited to 'src/utils/buildhex.h')
-rw-r--r--src/utils/buildhex.h6
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