From f0f954d463f7ab0e0ce792527e6567611ed67bf9 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 13 Oct 2026 07:43:48 -0300 Subject: 50% colors i'll do rainbow and whatever else i'm missing from the rust version later too lseepy rn --- src/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helper.c') diff --git a/src/helper.c b/src/helper.c index 2749daa..f258d23 100644 --- a/src/helper.c +++ b/src/helper.c @@ -4,7 +4,7 @@ /* this reads one utf81 character from the start of bytes it puts the character's number in *codepoint and returns how many bytes it used (its always 1 or more) invalid input it stores U+FFFD (�) and returns 1, so the caller always moves forward. */ -static int utf8_decode(const unsigned char *bytes, unsigned long *codepoint){ +int utf8_decode(const unsigned char *bytes, unsigned long *codepoint){ unsigned long value = bytes[0]; unsigned long minallowed = 0; //rejects overlong encodings int sequence_length; -- cgit v1.3-2-g0d8e