From d6129cd571a1a541abaf237d299058a5eed204bf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 17 Dec 2021 22:35:21 -0800 Subject: correct count of test failures --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit 1.4.1-2-gfad0