mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 19:31:46 +00:00
Fix build on older compiler
This commit is contained in:
parent
79a07ee61c
commit
678f2ad073
2 changed files with 2 additions and 2 deletions
|
|
@ -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 <auto_color_scheme>` to use so that kitty changes colors automatically following the OS dark/light mode
|
||||
|
|
|
|||
|
|
@ -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]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue