Replace lua_pushnumber with lua_pushinteger where necessary.

Lua 5.3 now supports 64bit integers. Using a number instead of an integer can cause problems since
tostring adds the decimal dot:
	- Lua 5.2: tostring(5.0) = "5"
	- Lua 5.3: tostring(5.0) = "5.0"
This commit is contained in:
emanuele-f 2018-11-29 15:36:19 +01:00
parent b4ca9d368f
commit 8a8a016283
7 changed files with 36 additions and 37 deletions

View file

@ -113,7 +113,7 @@ void AutonomousSystem::lua(lua_State* vm, DetailsLevel details_level, bool asLis
}
if(asListElement) {
lua_pushnumber(vm, asn);
lua_pushinteger(vm, asn);
lua_insert(vm, -2);
lua_settable(vm, -3);
}