]> git.codecow.com Git - Monocypher.git/commitdiff
Tests suite: fixed C++ compatibility
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 27 Dec 2020 21:23:51 +0000 (22:23 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 27 Dec 2020 21:23:51 +0000 (22:23 +0100)
tests/utils.c

index 232157896859931552555fc455ae3ed0032d9730..d56e3a703cabcd36dba637e2758ed8ddfcfea12f 100644 (file)
@@ -177,7 +177,7 @@ vector next_output(vector_reader *reader)
     reader->size--;
     reader->expected = vector_of_string(next);
     reader->out.size = reader->expected.size;
-    reader->out.buf  = alloc(reader->out.size);
+    reader->out.buf  = (u8*)alloc(reader->out.size);
     return reader->out;
 }