From 4754fa39021852bda9a653d51e9fbd2075c52764 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 3 Sep 2022 14:03:51 -0500 Subject: [PATCH] Fix issue #1021 - bad format specifiers in run.c --- src/core/run.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/run.c b/src/core/run.c index 5b3efc14..be8041e2 100644 --- a/src/core/run.c +++ b/src/core/run.c @@ -80,9 +80,9 @@ int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char const char *e = janet_parser_error(&parser); errflags |= 0x04; ret = janet_cstringv(e); - size_t line = parser.line; - size_t col = parser.column; - janet_eprintf("%s:%lu:%lu: parse error: %s\n", sourcePath, line, col, e); + int32_t line = (int32_t) parser.line; + int32_t col = (int32_t) parser.column; + janet_eprintf("%s:%d:%d: parse error: %s\n", sourcePath, line, col, e); done = 1; break; }