From b4252f8fa6b48ac7aabeff5b7e801973533cfee4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 23 Aug 2012 15:56:57 +0200 Subject: [PATCH] crypto/aes_ccm_128: fix compile warning on openindiana --- lib/crypto/aes_ccm_128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.4.GIT