From 693452be18cc94674a20f67fae2d5370f8f3cca3 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 14 Jul 2014 16:03:41 +0000 Subject: [PATCH] using in place swapping macros git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagbmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 13430970ec..e29385a0e0 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -938,7 +938,7 @@ bool wxBMPHandler::DoLoadDib(wxImage * image, int width, int height, unsigned char temp; if ( !stream.ReadAll(&aWord, 2) ) return false; - aWord = wxUINT16_SWAP_ON_BE(aWord); + wxUINT16_SWAP_ON_BE_IN_PLACE(aWord); linepos += 2; /* Use the masks and calculated amount of shift to retrieve the color data out of the word. Then @@ -958,7 +958,7 @@ bool wxBMPHandler::DoLoadDib(wxImage * image, int width, int height, if ( !stream.ReadAll(&aDword, 4) ) return false; - aDword = wxINT32_SWAP_ON_BE(aDword); + wxINT32_SWAP_ON_BE_IN_PLACE(aDword); linepos += 4; temp = (unsigned char)((aDword & rmask) >> rshift); ptr[poffset] = temp;