fix: Loss of sign (initialization) (int to unsigned long long)

This commit is contained in:
Karel Miko 2017-05-09 21:29:39 +02:00
parent b439f83018
commit f6ea738fee

View File

@ -54,7 +54,7 @@ int ccm_memory(int cipher,
int err;
unsigned long len, L, x, y, z, CTRlen;
#ifdef LTC_FAST
LTC_FAST_TYPE fastMask = -1; /* initialize fastMask at all zeroes */
LTC_FAST_TYPE fastMask = ~0; /* initialize fastMask at all zeroes */
#endif
unsigned char mask = 0xff; /* initialize mask at all zeroes */