From: Björn Jacke Date: Thu, 23 Aug 2012 13:56:57 +0000 (+0200) Subject: crypto/aes_ccm_128: fix compile warning on openindiana X-Git-Tag: samba-4.0.0beta7~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4252f8fa6b48ac7aabeff5b7e801973533cfee4;p=thirdparty%2Fsamba.git crypto/aes_ccm_128: fix compile warning on openindiana --- diff --git a/lib/crypto/aes_ccm_128.c b/lib/crypto/aes_ccm_128.c index ac8e01f631d..94b980337c1 100644 --- a/lib/crypto/aes_ccm_128.c +++ b/lib/crypto/aes_ccm_128.c @@ -70,7 +70,7 @@ void aes_ccm_128_init(struct aes_ccm_128_context *ctx, */ if (a_total >= UINT32_MAX) { RSSVAL(ctx->B_i, 0, 0xFFFF); - RSBVAL(ctx->B_i, 2, a_total); + RSBVAL(ctx->B_i, 2, (uint64_t)a_total); ctx->B_i_ofs = 10; } else if (a_total >= 0xFF00) { RSSVAL(ctx->B_i, 0, 0xFFFE);