Don't downcast size_t to int

This commit is contained in:
Frank Denis
2015-05-02 10:56:03 +02:00
parent 1b0e51da5e
commit 95983d4471
@@ -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)