aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-09 15:13:45 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-09-09 23:42:06 +0200
commitbb38c066a96512cf8cb2ef2e733494b5bbdfa3fd (patch)
treef8ee47cbbfd357c026268b864edf8698b2299954
parent87db6d894ad252edf69cd3382704c60d3115b51e (diff)
downloadrneovim-bb38c066a96512cf8cb2ef2e733494b5bbdfa3fd.tar.gz
rneovim-bb38c066a96512cf8cb2ef2e733494b5bbdfa3fd.tar.bz2
rneovim-bb38c066a96512cf8cb2ef2e733494b5bbdfa3fd.zip
fix: fix compiler warning from clang
-rw-r--r--src/nvim/os/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c
index 979c6153aa..81e15bf841 100644
--- a/src/nvim/os/shell.c
+++ b/src/nvim/os/shell.c
@@ -1026,7 +1026,7 @@ static bool out_data_decide_throttle(size_t size)
started = os_hrtime();
} else {
uint64_t since = os_hrtime() - started;
- if (since < (visit * 0.1L * NS_1_SECOND)) {
+ if (since < (visit * (NS_1_SECOND / 10))) {
return true;
}
if (since > (3 * NS_1_SECOND)) {