Small optimization, improves compatibility with DLL version of Lua runtime
This commit is contained in:
parent
019ba5dcfc
commit
d5ef6f4c32
@ -88,9 +88,8 @@ int path_getabsolute(lua_State* L)
|
||||
do_getabsolute(buffer, value, relative_to);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_pushnumber(L, ++i);
|
||||
lua_pushstring(L, buffer);
|
||||
lua_settable(L, -4);
|
||||
lua_rawseti(L, -3, ++i);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -47,9 +47,8 @@ int path_translate(lua_State* L)
|
||||
translate(buffer, value, sep[0]);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_pushnumber(L, ++i);
|
||||
lua_pushstring(L, buffer);
|
||||
lua_settable(L, 2);
|
||||
lua_rawseti(L, -3, ++i);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user