diff options
-rw-r--r-- | src/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c index 4c0691a..c61cc9a 100644 --- a/src/lua.c +++ b/src/lua.c @@ -351,7 +351,7 @@ int run_tests(lua_State *L) { int num_failures = lua_tointeger(L, -1); lua_pop(L, 1); if (num_failures == 0) return 0; - printf("%ld failures", lua_tointeger(L, -1)); + printf("%d failures", num_failures); fflush(stdout); getch(); /* take first failure back to developer mode */ |