diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-03 21:48:32 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-03 21:48:32 +1000 |
commit | 32cb45c8627a41373d04d6fdc48e02d253957a65 (patch) | |
tree | de07aaab9c7beda8e908f9c2677ff7cec4140261 | |
parent | ec49bbb4c56b3c3ba7e786b227e387bee0da03b8 (diff) | |
download | luaossl-32cb45c8627a41373d04d6fdc48e02d253957a65.tar.gz luaossl-32cb45c8627a41373d04d6fdc48e02d253957a65.tar.bz2 luaossl-32cb45c8627a41373d04d6fdc48e02d253957a65.zip |
Fix warning about pointer signedness
-rw-r--r-- | src/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |