From 39e607e7c75413afd903c110b1af59b3422d97d4 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 24 May 2022 16:31:37 +0200 Subject: [PATCH] DynamicMacros: Fix the size of our lookup table Our lookup table should have 32 entries, not 31, as Kaleidoscope-Ranges gives DynamicMacros 32 entries. Thanks @gedankenexperimenter for spotting this! Signed-off-by: Gergely Nagy --- .../src/kaleidoscope/plugin/DynamicMacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Kaleidoscope-DynamicMacros/src/kaleidoscope/plugin/DynamicMacros.h b/plugins/Kaleidoscope-DynamicMacros/src/kaleidoscope/plugin/DynamicMacros.h index 0c2b045f..90545294 100644 --- a/plugins/Kaleidoscope-DynamicMacros/src/kaleidoscope/plugin/DynamicMacros.h +++ b/plugins/Kaleidoscope-DynamicMacros/src/kaleidoscope/plugin/DynamicMacros.h @@ -49,7 +49,7 @@ class DynamicMacros : public kaleidoscope::Plugin { private: static uint16_t storage_base_; static uint16_t storage_size_; - static uint16_t map_[31]; + static uint16_t map_[32]; static uint8_t macro_count_; static uint8_t updateDynamicMacroCache(); static Key active_macro_keys_[MAX_CONCURRENT_DYNAMIC_MACRO_KEYS];