1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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

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