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]));