From 38cec22d4c5ff591964dc1d36f62189a3d238eec Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 28 Dec 2019 23:34:17 +0100 Subject: [PATCH] Use division assignment operator to simplify the statement --- src/common/imagbmp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 352279e355..44d4fe0fd6 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -1060,7 +1060,7 @@ bool wxBMPHandler::LoadDib(wxImage *image, wxInputStream& stream, width = wxINT32_SWAP_ON_BE((int)dbuf[0]); height = wxINT32_SWAP_ON_BE((int)dbuf[1]); } - if ( !IsBmp)height = height / 2; // for icons divide by 2 + if ( !IsBmp) height /= 2; // for icons divide by 2 if ( width > 32767 ) {