From f07d050931d5d3ff5e41f9cc4a610828846955ec Mon Sep 17 00:00:00 2001 From: brinkqiang Date: Thu, 5 Apr 2018 16:35:50 +0800 Subject: [PATCH] fix warning --- src/tolua/tolua_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tolua/tolua_map.c b/src/tolua/tolua_map.c index 148c387..9c0d5d0 100644 --- a/src/tolua/tolua_map.c +++ b/src/tolua/tolua_map.c @@ -25,7 +25,7 @@ /* Create metatable * Create and register new metatable */ -static int tolua_newmetatable( lua_State* L, char* name ) +static int tolua_newmetatable( lua_State* L, const char* name ) { int r = luaL_newmetatable( L, name ); #ifdef LUA_VERSION_NUM /* only lua 5.1 */