diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2018-07-29 19:26:08 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2018-07-29 19:26:08 +0200 |
commit | 73fb49f4323a817ef00a88bb33b9c565720556ca (patch) | |
tree | e191b6ed9cec1c8460db6b570197d1443e4fb6aa | |
parent | d7f90212452cf37300c3b353d358ccaa02338fc2 (diff) | |
download | lua-compat-5.3-73fb49f4323a817ef00a88bb33b9c565720556ca.tar.gz lua-compat-5.3-73fb49f4323a817ef00a88bb33b9c565720556ca.tar.bz2 lua-compat-5.3-73fb49f4323a817ef00a88bb33b9c565720556ca.zip |
Make test C module compile as C++ again.
-rw-r--r-- | tests/testmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testmod.c b/tests/testmod.c index 345a8c9..3bf2cd3 100644 --- a/tests/testmod.c +++ b/tests/testmod.c | |||
@@ -70,7 +70,7 @@ static int test_getseti (lua_State *L) { | |||
70 | static int test_getextraspace (lua_State *L) { | 70 | static int test_getextraspace (lua_State *L) { |
71 | size_t len = 0; | 71 | size_t len = 0; |
72 | char const* s = luaL_optlstring(L, 1, NULL, &len); | 72 | char const* s = luaL_optlstring(L, 1, NULL, &len); |
73 | void* p = lua_getextraspace(L); | 73 | char* p = (char*)lua_getextraspace(L); |
74 | lua_pushstring(L, p); | 74 | lua_pushstring(L, p); |
75 | if (s) | 75 | if (s) |
76 | memcpy(p, s, len > LUA_EXTRASPACE-1 ? LUA_EXTRASPACE-1 : len+1); | 76 | memcpy(p, s, len > LUA_EXTRASPACE-1 ? LUA_EXTRASPACE-1 : len+1); |