Author: post Date: 2013-09-23 11:19:17 +0200 (Mon, 23 Sep 2013) New Revision: 593
Modified: RawSpeed/BitPumpMSB.cpp Log: Minor adjustment to help MSVC in code generation. Modified: RawSpeed/BitPumpMSB.cpp =================================================================== --- RawSpeed/BitPumpMSB.cpp 2013-09-23 08:31:15 UTC (rev 592) +++ RawSpeed/BitPumpMSB.cpp 2013-09-23 09:19:17 UTC (rev 593) @@ -72,9 +72,10 @@ } b[3] = b[0]; #if defined(LE_PLATFORM_HAS_BSWAP) - b[2] = PLATFORM_BSWAP32(*(int*)&buffer[off]); - b[1] = PLATFORM_BSWAP32(*(int*)&buffer[off+4]); - b[0] = PLATFORM_BSWAP32(*(int*)&buffer[off+8]); + int* buf = (int*)&buffer[off]; + b[2] = PLATFORM_BSWAP32(buf[0]); + b[1] = PLATFORM_BSWAP32(buf[1]); + b[0] = PLATFORM_BSWAP32(buf[2]); off+=12; #else b[2] = (buffer[off] << 24) | (buffer[off+1] << 16) | (buffer[off+2] << 8) | buffer[off+3]; _______________________________________________ Rawstudio-commit mailing list [email protected] http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit
