fixes for MQX classic 4.0 with IAR-EWARM

This commit is contained in:
Chris Conlon
2018-07-06 14:33:24 -06:00
parent df6c496c4e
commit 0f2b5ca181
8 changed files with 29 additions and 13 deletions

View File

@@ -344,7 +344,7 @@ STATIC WC_INLINE byte ctMaskEq(int a, int b)
/* Constant time - select b when mask is set and a otherwise. */
STATIC WC_INLINE byte ctMaskSel(byte m, byte a, byte b)
{
return (a & ~m) | (b & m);
return (a & ~(word32)m) | (b & m);
}
/* Constant time - bit set when a <= b. */