From 02309a9ce17d25110e0482a2c9ffa4bdd4baf5ad Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Sun, 2 Jun 2019 23:01:03 +0200 Subject: [PATCH] Added explicit cast to avoid comparison between signed and unsigned integers Signed-off-by: Florian Fleissner --- src/kaleidoscope/plugin/OneShot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaleidoscope/plugin/OneShot.cpp b/src/kaleidoscope/plugin/OneShot.cpp index e5e8ce2d..d3263ed9 100644 --- a/src/kaleidoscope/plugin/OneShot.cpp +++ b/src/kaleidoscope/plugin/OneShot.cpp @@ -124,7 +124,7 @@ EventHandlerResult OneShot::onKeyswitchEvent(Key &mapped_key, byte row, byte col if (prev_key_ == mapped_key && isStickable(mapped_key)) { if ((Kaleidoscope.millisAtCycleStart() - start_time_) <= - ((double_tap_time_out == -1) ? time_out : double_tap_time_out)) { + uint16_t((double_tap_time_out == -1) ? time_out : double_tap_time_out)) { state_[idx].sticky = true; prev_key_ = mapped_key; }