Windows MBR Bootloader: workaround for 16-bit compiler internal error when compiling Camellia source code. In GET_UINT32_BE macro, we use |= operator instead of ORing shift values.

This commit is contained in:
Mounir IDRASSI 2017-07-17 17:46:10 +02:00
parent 86a78d55ed
commit b37d732408
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -43,10 +43,10 @@
#ifndef GET_UINT32_BE
#define GET_UINT32_BE(n,b,i) \
{ \
(n) = ( (unsigned __int32) (b)[(i) ] << 24 ) \
| ( (unsigned __int32) (b)[(i) + 1] << 16 ) \
| ( (unsigned __int32) (b)[(i) + 2] << 8 ) \
| ( (unsigned __int32) (b)[(i) + 3] ); \
(n) = ( (unsigned __int32) (b)[(i) ] << 24 ); \
(n)|= ( (unsigned __int32) (b)[(i) + 1] << 16 ); \
(n)|= ( (unsigned __int32) (b)[(i) + 2] << 8 ); \
(n)|= ( (unsigned __int32) (b)[(i) + 3] ); \
}
#endif