Fix compiler warnings: explicit cast to int in sha256/sha512 modules
diff --git a/Modules/sha256module.c b/Modules/sha256module.c
index 3274e7c..767bfac 100644
--- a/Modules/sha256module.c
+++ b/Modules/sha256module.c
@@ -274,7 +274,7 @@
memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i);
count -= i;
buffer += i;
- sha_info->local += i;
+ sha_info->local += (int)i;
if (sha_info->local == SHA_BLOCKSIZE) {
sha_transform(sha_info);
}
@@ -289,7 +289,7 @@
sha_transform(sha_info);
}
memcpy(sha_info->data, buffer, count);
- sha_info->local = count;
+ sha_info->local = (int)count;
}
/* finish computing the SHA digest */