Added explicit cast to avoid comparison between signed and unsigned integers

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
pull/651/head
Florian Fleissner 6 years ago
parent b818be1d8e
commit 02309a9ce1

@ -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;
}

Loading…
Cancel
Save