aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/sha2.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-02-24 03:46:21 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-04 22:45:16 +0100
commit30027481f7f9e9191f7c8deea51850b7a76b1b1f (patch)
tree815af293c2f6e38994e6096a4499be0dc9a476f9 /libtests/sha2.cc
parentbabb47948a408ebad12c452ba3fdd78782360167 (diff)
downloadqpdf-30027481f7f9e9191f7c8deea51850b7a76b1b1f.tar.zst
Remove all old-style casts from C++ code
Diffstat (limited to 'libtests/sha2.cc')
-rw-r--r--libtests/sha2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtests/sha2.cc b/libtests/sha2.cc
index 2b9aac3c..5110b89f 100644
--- a/libtests/sha2.cc
+++ b/libtests/sha2.cc
@@ -8,7 +8,7 @@ static void test(Pl_SHA2& sha2, char const* description, int bits,
char const* input, std::string const& output)
{
sha2.resetBits(bits);
- sha2.write((unsigned char*) input, strlen(input));
+ sha2.write(QUtil::unsigned_char_pointer(input), strlen(input));
sha2.finish();
std::cout << description << ": ";
if (output == sha2.getHexDigest())