From 9ccbd1eb1fb1c53fc7be721f98b0acb207e56723 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 29 Mar 2025 18:13:45 +1100 Subject: Simplify some boolean expressions and place brackets around subexpressions. --- win32/SurfaceGDI.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/SurfaceGDI.cxx') diff --git a/win32/SurfaceGDI.cxx b/win32/SurfaceGDI.cxx index 528a64573..9fc1ee50c 100644 --- a/win32/SurfaceGDI.cxx +++ b/win32/SurfaceGDI.cxx @@ -461,7 +461,7 @@ public: PLATFORM_ASSERT(y >= 0); PLATFORM_ASSERT(x < size.cx); PLATFORM_ASSERT(y < size.cy); - pixels[y * size.cx + x] = value; + pixels[(y * size.cx) + x] = value; } void SetSymmetric(LONG x, LONG y, DWORD value) noexcept; }; -- cgit v1.2.3