summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-08-23 15:56:57 +0200
committerBjoern Jacke <bj@sernet.de>2012-08-23 16:43:48 +0200
commitb4252f8fa6b48ac7aabeff5b7e801973533cfee4 (patch)
treeadcc2cd4f3a21832327bca8f20b24b2aa3fbb4c8 /lib
parentcbcfd85f415f4e035009133f8a382288aafbcbd7 (diff)
downloadsamba-b4252f8fa6b48ac7aabeff5b7e801973533cfee4.tar.gz
samba-b4252f8fa6b48ac7aabeff5b7e801973533cfee4.tar.bz2
samba-b4252f8fa6b48ac7aabeff5b7e801973533cfee4.zip
crypto/aes_ccm_128: fix compile warning on openindiana
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/aes_ccm_128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/aes_ccm_128.c b/lib/crypto/aes_ccm_128.c
index ac8e01f631..94b980337c 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);