diff options
Diffstat (limited to 'libtests/aes.cc')
-rw-r--r-- | libtests/aes.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/aes.cc b/libtests/aes.cc index 381148c1..5535cbb8 100644 --- a/libtests/aes.cc +++ b/libtests/aes.cc @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) usage(); } - unsigned int hexkeylen = (unsigned int)strlen(hexkey); + unsigned int hexkeylen = strlen(hexkey); unsigned int keylen = hexkeylen / 2; FILE* infile = fopen(infilename, "rb"); @@ -112,7 +112,7 @@ int main(int argc, char* argv[]) t[2] = '\0'; long val = strtol(t, 0, 16); - key[i/2] = (unsigned char) val; + key[i/2] = static_cast<unsigned char>(val); } Pl_StdioFile* out = new Pl_StdioFile("stdout", outfile); |