From 678f2ad0736c5d2148c22ebd8b93033f377a712a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Dec 2024 09:23:29 +0530 Subject: [PATCH] Fix build on older compiler --- docs/changelog.rst | 2 +- kitty/keys.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8562e1762..9c8452c1b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -84,7 +84,7 @@ consumption to do the same tasks. Detailed list of changes ------------------------------------- -0.38.0 [future] +0.38.0 [2024-12-15] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Allow :ref:`specifying individual color themes ` to use so that kitty changes colors automatically following the OS dark/light mode diff --git a/kitty/keys.c b/kitty/keys.c index 42a393057..74707da78 100644 --- a/kitty/keys.c +++ b/kitty/keys.c @@ -297,7 +297,7 @@ on_key_input(const GLFWkeyevent *ev) { } if (w->buffered_keys.enabled) { if (w->buffered_keys.capacity < w->buffered_keys.count + 1) { - w->buffered_keys.capacity = MAX(16, w->buffered_keys.capacity + 8); + w->buffered_keys.capacity = MAX(16u, w->buffered_keys.capacity + 8); GLFWkeyevent *new = malloc(w->buffered_keys.capacity * sizeof(GLFWkeyevent)); if (!new) fatal("Out of memory"); memcpy(new, w->buffered_keys.key_data, w->buffered_keys.count * sizeof(new[0]));