From 73fb49f4323a817ef00a88bb33b9c565720556ca Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Sun, 29 Jul 2018 19:26:08 +0200 Subject: Make test C module compile as C++ again. --- tests/testmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) { static int test_getextraspace (lua_State *L) { size_t len = 0; char const* s = luaL_optlstring(L, 1, NULL, &len); - void* p = lua_getextraspace(L); + char* p = (char*)lua_getextraspace(L); lua_pushstring(L, p); if (s) memcpy(p, s, len > LUA_EXTRASPACE-1 ? LUA_EXTRASPACE-1 : len+1); -- cgit v1.2.3-55-g6feb