From b37d7324081027c5b7f5de89b6ccb22742c90458 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 17 Jul 2017 17:46:10 +0200 Subject: [PATCH] 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. --- src/Crypto/CamelliaSmall.c | 8 ++++---- 1 file 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