Fix integer suffix rejected by some MSVC versions

This commit is contained in:
Manuel Pégourié-Gonnard 2014-07-21 13:59:12 +02:00
parent 42cc641159
commit 8d77eeeaf6

View File

@ -354,7 +354,7 @@ int gcm_update( gcm_context *ctx,
/* 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 );
}