From 95983d447108f46edf13c740af84b673658bf767 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 2 May 2015 10:56:03 +0200 Subject: [PATCH] Don't downcast size_t to int --- .../nosse/pwhash_scryptsalsa208sha256_nosse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c index 128b6a13..a9eec746 100644 --- a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +++ b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c @@ -69,7 +69,7 @@ blkxor_64(escrypt_block_t *dest, const escrypt_block_t *src) static inline void blkcpy(escrypt_block_t *dest, const escrypt_block_t *src, size_t len) { - int i, L; + size_t i, L; #if (ARCH_BITS==32) L = (len>>2); for (i = 0; i < L; ++i) @@ -84,7 +84,7 @@ blkcpy(escrypt_block_t *dest, const escrypt_block_t *src, size_t len) static inline void blkxor(escrypt_block_t *dest, const escrypt_block_t *src, size_t len) { - int i, L; + size_t i, L; #if (ARCH_BITS==32) L = (len>>2); for (i = 0; i < L; ++i)