aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/aes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/aes.cc')
-rw-r--r--libtests/aes.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/aes.cc b/libtests/aes.cc
index 418c3297..ad2f0dd8 100644
--- a/libtests/aes.cc
+++ b/libtests/aes.cc
@@ -46,7 +46,7 @@ int main(int argc, char* argv[])
usage();
}
- unsigned int hexkeylen = strlen(hexkey);
+ unsigned int hexkeylen = (unsigned int)strlen(hexkey);
unsigned int keylen = hexkeylen / 2;
if (keylen != Pl_AES_PDF::key_size)
{
@@ -93,7 +93,7 @@ int main(int argc, char* argv[])
bool done = false;
while (! done)
{
- int len = fread(buf, 1, sizeof(buf), infile);
+ size_t len = fread(buf, 1, sizeof(buf), infile);
if (len <= 0)
{
done = true;