diff -Naur monotone-1.1.orig/src/lua.cc monotone-1.1/src/lua.cc
--- monotone-1.1.orig/src/lua.cc 2014-05-04 11:15:17.000000000 +0200
+++ monotone-1.1/src/lua.cc 2015-06-21 16:47:12.753916549 +0200
@@ -334,7 +334,7 @@
{
if (failed) return *this;
if (!check_stack(1)) return *this;
- lua_pushnumber(st, num);
+ lua_pushinteger(st, num);
return *this;
}
diff -Naur monotone-1.1.orig/src/luaext_platform.cc monotone-1.1/src/luaext_platform.cc
--- monotone-1.1.orig/src/luaext_platform.cc 2014-05-04 11:15:17.000000000 +0200
+++ monotone-1.1/src/luaext_platform.cc 2015-06-21 15:16:42.455792643 +0200
@@ -185,8 +185,8 @@
int res;
int ret;
ret = process_wait(pid, &res);
- lua_pushnumber(LS, res);
- lua_pushnumber(LS, ret);
+ lua_pushinteger(LS, res);
+ lua_pushinteger(LS, ret);
return 2;
}
diff -Naur monotone-1.1.orig/test/src/tester.cc monotone-1.1/test/src/tester.cc
--- monotone-1.1.orig/test/src/tester.cc 2014-05-04 11:15:25.000000000 +0200
+++ monotone-1.1/test/src/tester.cc 2015-06-21 15:16:42.491792237 +0200
@@ -418,8 +418,8 @@
int res;
int ret;
ret = process_wait(pid, &res, time);
- lua_pushnumber(LS, res);
- lua_pushnumber(LS, ret);
+ lua_pushinteger(LS, res);
+ lua_pushinteger(LS, ret);
return 2;
}
diff -Naur monotone-1.1.orig/test/src/testlib.lua monotone-1.1/test/src/testlib.lua
--- monotone-1.1.orig/test/src/testlib.lua 2014-05-04 11:15:25.000000000 +0200
+++ monotone-1.1/test/src/testlib.lua 2015-06-21 16:11:08.180222890 +0200
@@ -1070,7 +1071,7 @@
counts.total = counts.total + 1
local format_seconds = function (seconds)
return string.format("%d:%02d",
- seconds / 60,
+ math.floor(seconds / 60),
seconds % 60)
end
local times = ""