summaryrefslogtreecommitdiffstats
path: root/src/time.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-15 16:29:03 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-15 16:29:03 +0100
commita2e4e0fc3b930caf20c4f6d2e70acf5325c3be51 (patch)
tree3e33ce0a72b1d0ca2db1cc7b83aab488476337d5 /src/time.c
parent4b082c4bd05f504fda1acaa9d28fca55a2d04857 (diff)
patch 9.0.0763: MS-Windows: warning for using int for size_tv9.0.0763
Problem: MS-Windows: warning for using int for size_t. Solution: Declare variable as size_t.
Diffstat (limited to 'src/time.c')
-rw-r--r--src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c
index a5be297d39..a7daaf176e 100644
--- a/src/time.c
+++ b/src/time.c
@@ -1123,7 +1123,7 @@ add_time(char_u *buf, size_t buflen, time_t tt)
#ifdef HAVE_STRFTIME
struct tm tmval;
struct tm *curtime;
- int n;
+ size_t n;
if (vim_time() - tt >= 100)
{