diff --git a/library/gcm.c b/library/gcm.c index 77b1e0fb6..2456c40cc 100644 --- a/library/gcm.c +++ b/library/gcm.c @@ -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 ); }