From 9040ac6a0c66f15faa90baf4862e9a906a69bc85 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 9 May 2020 23:58:45 -0500 Subject: [PATCH] Silence some warnings about pointer signedness. --- src/core/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/parse.c b/src/core/parse.c index 4feaebe4..52b23483 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -790,7 +790,7 @@ static int parsermark(void *p, size_t size) { janet_mark(parser->args[i]); } if (parser->flag & JANET_PARSER_GENERATED_ERROR) { - janet_mark(janet_wrap_string(parser->error)); + janet_mark(janet_wrap_string((const uint8_t *) parser->error)); } return 0; } @@ -928,7 +928,7 @@ static Janet cfun_parse_error(int32_t argc, Janet *argv) { const char *err = janet_parser_error(p); if (err) { return (p->flag & JANET_PARSER_GENERATED_ERROR) - ? janet_wrap_string(err) + ? janet_wrap_string((const uint8_t *) err) : janet_cstringv(err); } return janet_wrap_nil();