commit | 8d77eeeaf65fe360bf1a2f159139ff4d1577ba37 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jul 21 13:59:12 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Aug 14 11:34:34 2014 +0200 |
tree | d2b5519410717db040db651dcea6ab3c6225ede2 | |
parent | 42cc64115931f0ca6a815cd9e1d5cf580f612fac [diff] |
Fix integer suffix rejected by some MSVC versions
diff --git a/library/gcm.c b/library/gcm.c index 77b1e0f..2456c40 100644 --- a/library/gcm.c +++ b/library/gcm.c
@@ -354,7 +354,7 @@ /* Total length is restricted to 2^39 - 256 bits, ie 2^36 - 2^5 bytes * Also check for possible overflow */ if( ctx->len + length < ctx->len || - (uint64_t) ctx->len + length > 0x03FFFFE0llu ) + (uint64_t) ctx->len + length > 0x03FFFFE0ull ) { return( POLARSSL_ERR_GCM_BAD_INPUT ); }