Forráskód Böngészése

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

Karel Miko 8 éve
szülő
commit
f6ea738fee
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/encauth/ccm/ccm_memory.c

+ 1 - 1
src/encauth/ccm/ccm_memory.c

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