diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-02-24 03:46:21 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-04 22:45:16 +0100 |
commit | 30027481f7f9e9191f7c8deea51850b7a76b1b1f (patch) | |
tree | 815af293c2f6e38994e6096a4499be0dc9a476f9 /libtests/aes.cc | |
parent | babb47948a408ebad12c452ba3fdd78782360167 (diff) | |
download | qpdf-30027481f7f9e9191f7c8deea51850b7a76b1b1f.tar.zst |
Remove all old-style casts from C++ code
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); |