diff options
| author | 2024-10-25 05:36:08 -0700 | |
|---|---|---|
| committer | 2024-10-25 05:36:08 -0700 | |
| commit | 5e443cd29da23efd4454acce82abafc79252e87f (patch) | |
| tree | 476803c6cb520170a5882d1ee2eb3f99c678d979 | |
| parent | Merge pull request #1515 from sogaiu/tweak-install-info-in-readme (diff) | |
| parent | Cast arguments to `int32_t` before passing to `janet_formatb` with `%d` forma... (diff) | |
Merge pull request #1514 from ArtSin/fix-formatb-int32_t-arg
Cast arguments to `int32_t` before passing to `janet_formatb` with `%d` format specifier
| -rw-r--r-- | src/core/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/parse.c b/src/core/parse.c index cfb566b2..6faa7948 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -231,7 +231,7 @@ static void delim_error(JanetParser *parser, size_t stack_index, char c, const c janet_buffer_push_u8(buffer, '`'); } } - janet_formatb(buffer, " opened at line %d, column %d", s->line, s->column); + janet_formatb(buffer, " opened at line %d, column %d", (int32_t) s->line, (int32_t) s->column); } parser->error = (const char *) janet_string(buffer->data, buffer->count); parser->flag |= JANET_PARSER_GENERATED_ERROR; |
