From b4c41cc75f446d74d16e608fdccaffa5001f9fb3 Mon Sep 17 00:00:00 2001 From: Techcable Date: Tue, 15 Nov 2022 14:04:36 -0700 Subject: [PATCH] Fix panic arg in raw_term.c:extract_codepoint Fixes a type error/warning and avoids undefined behavior --- src/rawterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rawterm.c b/src/rawterm.c index c9b6100..431f22b 100644 --- a/src/rawterm.c +++ b/src/rawterm.c @@ -342,7 +342,7 @@ static uint32_t extract_codepoint(const uint8_t **pstr, const uint8_t *end) { *pstr = str; return codepoint; exit: - janet_panics("invalid codepoint"); + janet_panic("invalid codepoint"); } /* Measure the size of a single character in a monospaced terminal */