aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-03 19:51:01 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-03 19:51:01 +1000
commitec49bbb4c56b3c3ba7e786b227e387bee0da03b8 (patch)
tree9f06b939b47edb4ef93437dc3608f23d2d1d799d
parente8e6bfa098bfe24fd5d6f021f030b64fffa453ff (diff)
downloadluaossl-ec49bbb4c56b3c3ba7e786b227e387bee0da03b8.tar.gz
luaossl-ec49bbb4c56b3c3ba7e786b227e387bee0da03b8.tar.bz2
luaossl-ec49bbb4c56b3c3ba7e786b227e387bee0da03b8.zip
Fix warning about pointer signedness
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
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