diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/buildhex.h | 6 | ||||
-rw-r--r-- | src/utils/checkutils.h | 8 |
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) \ |