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) { | |||
8510 | if (LUAL_BUFFERSIZE < len) | 8510 | if (LUAL_BUFFERSIZE < len) |
8511 | luaL_error(L, "ssl:getClientRandom: LUAL_BUFFERSIZE(%d) < SSL_get_client_random(ssl, NULL, 0)", (int)LUAL_BUFFERSIZE, (int)len); | 8511 | luaL_error(L, "ssl:getClientRandom: LUAL_BUFFERSIZE(%d) < SSL_get_client_random(ssl, NULL, 0)", (int)LUAL_BUFFERSIZE, (int)len); |
8512 | luaL_buffinit(L, &B); | 8512 | luaL_buffinit(L, &B); |
8513 | out = luaL_prepbuffer(&B); | 8513 | out = (unsigned char*)luaL_prepbuffer(&B); |
8514 | len = SSL_get_client_random(ssl, out, len); | 8514 | len = SSL_get_client_random(ssl, out, len); |
8515 | luaL_addsize(&B, len); | 8515 | luaL_addsize(&B, len); |
8516 | luaL_pushresult(&B); | 8516 | luaL_pushresult(&B); |