From 46bc24be3bd705933baa83a36de36d954202563f Mon Sep 17 00:00:00 2001 From: Shylie Date: Mon, 15 Apr 2024 10:01:12 -0400 Subject: [PATCH] Use unsigned int instead of int for codepoints --- include/terml.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/terml.h b/include/terml.h index d405168..6aab1ae 100644 --- a/include/terml.h +++ b/include/terml.h @@ -8,7 +8,7 @@ extern "C" typedef void (*terml_main_callback) (); typedef int (*terml_quit_callback) (); -typedef void (*terml_key_callback) (char code); +typedef void (*terml_key_callback) (unsigned int code); typedef void (*terml_resize_callback)( unsigned int previous_width, unsigned int previous_height @@ -16,7 +16,7 @@ typedef void (*terml_resize_callback)( struct tcell { - int codepoint; + unsigned int codepoint; int foreground; int background; };