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/resources/sdlgfxblitfunc.cpp | |
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/resources/sdlgfxblitfunc.cpp')
-rw-r--r-- | src/resources/sdlgfxblitfunc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/sdlgfxblitfunc.cpp b/src/resources/sdlgfxblitfunc.cpp index 199d8d2bb..c2d66a68f 100644 --- a/src/resources/sdlgfxblitfunc.cpp +++ b/src/resources/sdlgfxblitfunc.cpp @@ -40,8 +40,8 @@ PRAGMA48(GCC diagnostic pop) #include "debug.h" #define GFX_DUFFS_LOOP4(pixel_copy_increment, width) \ - int n = (width + 3) / 4; \ - switch (width & 3) \ + int n = ((width) + 3) / 4; \ + switch ((width) & 3) \ { \ case 0: do { \ pixel_copy_increment; \ |