From 8d77eeeaf65fe360bf1a2f159139ff4d1577ba37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 21 Jul 2014 13:59:12 +0200 Subject: [PATCH] Fix integer suffix rejected by some MSVC versions --- library/gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }