Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua5.3] Changed lua_tonumber to lua_tointeger where necessary
[simgrid.git] / src / bindings / lua / simgrid_lua.c
index 97d9e96..587bca3 100644 (file)
@@ -354,7 +354,7 @@ static int run_lua_code(int argc, char **argv)
   /* retrieve result */
   int res = 1;
   if (lua_isnumber(L, -1)) {
-    res = lua_tonumber(L, -1);
+    res = lua_tointeger(L, -1);
     lua_pop(L, 1);              /* pop returned value */
   }