From 4433fde0995bc0185bf60c5c0947aa60e89f58ac Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 20 Sep 2012 15:42:18 -0700 Subject: [PATCH] c++ warning fix --- ctaocrypt/src/pwdbased.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/pwdbased.c b/ctaocrypt/src/pwdbased.c index 3b5e2d134..3e9535ba9 100644 --- a/ctaocrypt/src/pwdbased.c +++ b/ctaocrypt/src/pwdbased.c @@ -54,7 +54,7 @@ int PBKDF1(byte* output, const byte* passwd, int pLen, const byte* salt, { Md5 md5; Sha sha; - int hLen = (hashType == MD5) ? MD5_DIGEST_SIZE : SHA_DIGEST_SIZE; + int hLen = (hashType == MD5) ? (int)MD5_DIGEST_SIZE : (int)SHA_DIGEST_SIZE; int i; byte buffer[SHA_DIGEST_SIZE]; /* max size */