diff options
| author | iamcheeseman <[email protected]> | 2026-05-23 12:14:51 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-23 12:14:51 -0400 |
| commit | 8d9195df408915847fedfd595ea73ce24357788c (patch) | |
| tree | d46bf869e15f22ae17dddb93180afa75c872c21a /teensy | |
| parent | c2ea095659dea04663b83fe5313173f209c9bb0b (diff) | |
fix warnings
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/platform/gl/gl.c | 2 | ||||
| -rw-r--r-- | teensy/teensy_ui.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/teensy/platform/gl/gl.c b/teensy/platform/gl/gl.c index 9f9c8f5..6bdae71 100644 --- a/teensy/platform/gl/gl.c +++ b/teensy/platform/gl/gl.c @@ -51,6 +51,7 @@ Gl_Platform p; static void character_callback(GLFWwindow *window, unsigned int cp) { + (void)window; p.typed = cp; } @@ -279,4 +280,5 @@ bool ty_platform_get_typed_char(uint32_t *c) if (p.typed == 0) return false; p.typed = 0; + return true; } diff --git a/teensy/teensy_ui.h b/teensy/teensy_ui.h index 5ceda30..a7b5d4e 100644 --- a/teensy/teensy_ui.h +++ b/teensy/teensy_ui.h @@ -70,7 +70,7 @@ typedef struct { typedef struct { char *chars; - int max_len; + size_t max_len; } tyui_Text_Input; void tyui_init(const ty_Font *font); |
