From: Christian Heinrich Date: Wed, 25 Mar 2015 16:08:26 +0000 (+0100) Subject: Added new case to lua_state_cloner.c: LUA_TNONE X-Git-Tag: v3_13~1644^2~35 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6febf16057c3e263920320b62d01eb1d221a172e Added new case to lua_state_cloner.c: LUA_TNONE - This should be called if the top value does not exist. --- diff --git a/src/bindings/lua/lua_state_cloner.c b/src/bindings/lua/lua_state_cloner.c index 12f552fc44..64a4f8d09a 100644 --- a/src/bindings/lua/lua_state_cloner.c +++ b/src/bindings/lua/lua_state_cloner.c @@ -232,6 +232,10 @@ void sglua_copy_value(lua_State* src, lua_State* dst) { case LUA_TTHREAD: sglua_copy_thread(src, dst); break; + + case LUA_TNONE: + XBT_ERROR("This index is acceptable but non-valid"); + break; } XBT_DEBUG("%sData copied", sglua_get_spaces(indent));