From e59bfee28198d4d651b9647584db7d535b8b94c3 Mon Sep 17 00:00:00 2001 From: Frank DENIS Date: Tue, 31 Jan 2017 17:14:12 +0100 Subject: [PATCH] C++ compat --- src/libsodium/randombytes/randombytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/randombytes/randombytes.c b/src/libsodium/randombytes/randombytes.c index dd5763a6..6c3fb2bd 100644 --- a/src/libsodium/randombytes/randombytes.c +++ b/src/libsodium/randombytes/randombytes.c @@ -154,7 +154,7 @@ randombytes_buf(void * const buf, const size_t size) implementation->buf(buf, size); } #else - unsigned char *p = buf; + unsigned char *p = (unsigned char *) buf; size_t i; for (i = (size_t) 0U; i < size; i++) {