From ec49bbb4c56b3c3ba7e786b227e387bee0da03b8 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 3 Apr 2017 19:51:01 +1000 Subject: Fix warning about pointer signedness --- src/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 890ca2c..66c5d8b 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -8515,7 +8515,7 @@ static int ssl_getClientRandom(lua_State *L) { luaL_addsize(&B, len); luaL_pushresult(&B); #else - out = luaL_buffinitsize(L, &B, len); + out = (unsigned char*)luaL_buffinitsize(L, &B, len); len = SSL_get_client_random(ssl, out, len); luaL_pushresultsize(&B, len); #endif -- cgit v1.2.3-59-g8ed1b