]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0763: MS-Windows: warning for using int for size_t v9.0.0763
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Oct 2022 15:29:03 +0000 (16:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Oct 2022 15:29:03 +0000 (16:29 +0100)
Problem:    MS-Windows: warning for using int for size_t.
Solution:   Declare variable as size_t.

src/time.c
src/version.c

index a5be297d392b54e487d2ebf9c726f2a103f59528..a7daaf176ec2cc48f453872870154f8def24d7af 100644 (file)
@@ -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)
     {
index 08851f8c92440153850b83adb9d0eee5b7d40602..502655ce102299c4450540ad9666e2868ab32b44 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    763,
 /**/
     762,
 /**/