From 32cb45c8627a41373d04d6fdc48e02d253957a65 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 3 Apr 2017 21:48:32 +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 66c5d8b..67c8263 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -8510,7 +8510,7 @@ static int ssl_getClientRandom(lua_State *L) { if (LUAL_BUFFERSIZE < len) luaL_error(L, "ssl:getClientRandom: LUAL_BUFFERSIZE(%d) < SSL_get_client_random(ssl, NULL, 0)", (int)LUAL_BUFFERSIZE, (int)len); luaL_buffinit(L, &B); - out = luaL_prepbuffer(&B); + out = (unsigned char*)luaL_prepbuffer(&B); len = SSL_get_client_random(ssl, out, len); luaL_addsize(&B, len); luaL_pushresult(&B); -- cgit v1.2.3-59-g8ed1b