about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-17 22:35:21 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-17 22:35:21 -0800
commitd6129cd571a1a541abaf237d299058a5eed204bf (patch)
tree6be571bd83053dbb42aa8890ca4bb935f2529359
parent42b1bd842cd693f034c97b4644c9f28146fc489d (diff)
downloadteliva-d6129cd571a1a541abaf237d299058a5eed204bf.tar.gz
correct count of test failures
-rw-r--r--src/lua.c2
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 */