summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index ecc5a2169c9..5b5972ceee4 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3738,7 +3738,7 @@ Time_to_position (Time encoded_pos)
{
if (encoded_pos <= INPUT_EVENT_POS_MAX)
return encoded_pos;
- Time encoded_pos_min = INPUT_EVENT_POS_MIN;
+ Time encoded_pos_min = position_to_Time (INPUT_EVENT_POS_MIN);
eassert (encoded_pos_min <= encoded_pos);
ptrdiff_t notpos = -1 - encoded_pos;
return -1 - notpos;