diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-17 17:46:10 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-19 01:12:22 +0200 |
commit | b37d7324081027c5b7f5de89b6ccb22742c90458 (patch) | |
tree | 561bd1604bb694f0b64ce4988c69a99454ccb080 /src | |
parent | 86a78d55ed41758ca939f9f91bd5ab92549278e2 (diff) | |
download | VeraCrypt-b37d7324081027c5b7f5de89b6ccb22742c90458.tar.gz VeraCrypt-b37d7324081027c5b7f5de89b6ccb22742c90458.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Crypto/CamelliaSmall.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Crypto/CamelliaSmall.c b/src/Crypto/CamelliaSmall.c index 8ba7ed74..d6911d61 100644 --- a/src/Crypto/CamelliaSmall.c +++ b/src/Crypto/CamelliaSmall.c @@ -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 |