diff options
author | Neil <nyamatongwe@gmail.com> | 2025-03-29 18:13:45 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-03-29 18:13:45 +1100 |
commit | 9ccbd1eb1fb1c53fc7be721f98b0acb207e56723 (patch) | |
tree | deb7b969d7e0ec42b5456dc92a14b01d5084598d /win32/SurfaceGDI.cxx | |
parent | 908be66566d803445c613a2dbe9fbc901d4be7e3 (diff) | |
download | scintilla-mirror-9ccbd1eb1fb1c53fc7be721f98b0acb207e56723.tar.gz |
Simplify some boolean expressions and place brackets around subexpressions.
Diffstat (limited to 'win32/SurfaceGDI.cxx')
-rw-r--r-- | win32/SurfaceGDI.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |