Skip to content

Commit

Permalink
Fix panic arg in raw_term.c:extract_codepoint
Browse files Browse the repository at this point in the history
Fixes a type error/warning and avoids undefined behavior
  • Loading branch information
Techcable committed Nov 15, 2022
1 parent 08c64fb commit b4c41cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rawterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b4c41cc

Please sign in to comment.