From 5400a3120742494281f6cce43545657432a08f25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Apr 2018 04:11:12 +0300 Subject: Add some missing brackets in macroses. --- src/resources/sdlgfxblitfunc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/sdlgfxblitfunc.cpp') 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; \ -- cgit v1.2.3-70-g09d2