diff options
| author | Albert Cervin <albert@acervin.com> | 2023-05-18 23:52:54 +0200 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2023-05-18 23:52:54 +0200 |
| commit | a4d17ddb8e7d23ccca13132f4d88cfc5f5730b76 (patch) | |
| tree | 3797d4ebafc7af128020e37678815c0f8c00072f /src/dged/keyboard.h | |
| parent | 74f4ec2a181a28a3b787cee0dc8e9ea74f50a8f8 (diff) | |
| download | dged-a4d17ddb8e7d23ccca13132f4d88cfc5f5730b76.tar.gz dged-a4d17ddb8e7d23ccca13132f4d88cfc5f5730b76.tar.xz dged-a4d17ddb8e7d23ccca13132f4d88cfc5f5730b76.zip | |
Fix too small index in keyboard code
The buffer _can_ be bigger than 255
Diffstat (limited to 'src/dged/keyboard.h')
| -rw-r--r-- | src/dged/keyboard.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; }; /** |
