summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 7287ed3ad..47ef4a06c 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -214,7 +214,8 @@ void KeyboardConfig::handleRepeat(const int time)
}
if (repeat)
{
- if (time > keyTime && abs(time - keyTime) > mRepeatTime)
+ if (time > keyTime && abs(time - keyTime)
+ > static_cast<signed>(mRepeatTime))
{
keyTime = time;
inputManager.triggerAction(getActionVectorByKey(key));