summaryrefslogtreecommitdiff
path: root/src/utils
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
parentecae89e342fc07daa816fe7de133968a51745040 (diff)
downloadmv-5400a3120742494281f6cce43545657432a08f25.tar.gz
mv-5400a3120742494281f6cce43545657432a08f25.tar.bz2
mv-5400a3120742494281f6cce43545657432a08f25.tar.xz
mv-5400a3120742494281f6cce43545657432a08f25.zip
Add some missing brackets in macroses.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/buildhex.h6
-rw-r--r--src/utils/checkutils.h8
2 files changed, 7 insertions, 7 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
diff --git a/src/utils/checkutils.h b/src/utils/checkutils.h
index d0d74248b..567555f89 100644
--- a/src/utils/checkutils.h
+++ b/src/utils/checkutils.h
@@ -182,7 +182,7 @@ void reportStack();
}
#define returnFalseVReal(val) \
- if (!val) \
+ if (!(val)) \
return;
#define returnTrueVReal(val) \
@@ -190,7 +190,7 @@ void reportStack();
return;
#define returnFalseReal(ret, val) \
- if (!val) \
+ if (!(val)) \
return ret;
#define returnTrueReal(ret, val) \
@@ -209,7 +209,7 @@ void reportStack();
#define failTrue(val) (val)
#define returnFailFalseV(val) \
- if (!val) \
+ if (!(val)) \
return;
#define returnFailTrueV(val) \
@@ -217,7 +217,7 @@ void reportStack();
return;
#define returnFailFalse(ret, val) \
- if (!val) \
+ if (!(val)) \
return ret;
#define returnFailTrue(ret, val) \