aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui/input.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-26 22:36:08 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-09-29 14:56:34 +0200
commitaf7d317f3ff31d5ac5d8724b5057a422e1451b54 (patch)
treec05c26591b00105d03684cb3179da935d104a964 /src/nvim/tui/input.c
parent9afbfb4d646cd240e97dbaae109f12bfc853112c (diff)
downloadrneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.tar.gz
rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.tar.bz2
rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.zip
refactor: remove long
long is 32-bits even on 64-bit windows which makes the type suboptimal for a codebase meant to be cross-platform.
Diffstat (limited to 'src/nvim/tui/input.c')
-rw-r--r--src/nvim/tui/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index edf8cbe237..6e2cf6a0c2 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -763,8 +763,8 @@ static void tinput_read_cb(Stream *stream, RBuffer *buf, size_t count_, void *da
if (rbuffer_size(input->read_stream.buffer)) {
// If 'ttimeout' is not set, start the timer with a timeout of 0 to process
// the next input.
- long ms = input->ttimeout ?
- (input->ttimeoutlen >= 0 ? input->ttimeoutlen : 0) : 0;
+ int64_t ms = input->ttimeout ?
+ (input->ttimeoutlen >= 0 ? input->ttimeoutlen : 0) : 0;
// Stop the current timer if already running
time_watcher_stop(&input->timer_handle);
time_watcher_start(&input->timer_handle, tinput_timer_cb, (uint32_t)ms, 0);