mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 10:55:38 +01:00
Fix integer suffix rejected by some MSVC versions
This commit is contained in:
parent
42cc641159
commit
8d77eeeaf6
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user