From a4d17ddb8e7d23ccca13132f4d88cfc5f5730b76 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 18 May 2023 23:52:54 +0200 Subject: Fix too small index in keyboard code The buffer _can_ be bigger than 255 --- src/dged/keyboard.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dged/keyboard.h') diff --git a/src/dged/keyboard.h b/src/dged/keyboard.h index e602b69..e65563f 100644 --- a/src/dged/keyboard.h +++ b/src/dged/keyboard.h @@ -48,9 +48,9 @@ struct key { /** Modifier keys pressed (or-ed together) */ uint8_t mod; /** Index where this key press starts in the raw input buffer */ - uint8_t start; + uint32_t start; /** Index where this key press ends in the raw input buffer */ - uint8_t end; + uint32_t end; }; /** -- cgit v1.2.3