diff libtomcrypt/src/encauth/ccm/ccm_memory.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents e9dba7abd939
children
line wrap: on
line diff
--- a/libtomcrypt/src/encauth/ccm/ccm_memory.c	Thu Mar 21 23:28:59 2019 +0800
+++ b/libtomcrypt/src/encauth/ccm/ccm_memory.c	Fri Jun 26 21:07:34 2020 +0800
@@ -52,7 +52,7 @@
    int            err;
    unsigned long  len, L, x, y, z, CTRlen;
 #ifdef LTC_FAST
-   LTC_FAST_TYPE fastMask = ~0; /* initialize fastMask at all zeroes */
+   LTC_FAST_TYPE fastMask = ~(LTC_FAST_TYPE)0; /* initialize fastMask at all zeroes */
 #endif
    unsigned char mask = 0xff; /* initialize mask at all zeroes */