comparison src/time.c @ 30857:ec7cb7e68968 v9.0.0763

patch 9.0.0763: MS-Windows: warning for using int for size_t Commit: https://github.com/vim/vim/commit/a2e4e0fc3b930caf20c4f6d2e70acf5325c3be51 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 15 16:29:03 2022 +0100 patch 9.0.0763: MS-Windows: warning for using int for size_t Problem: MS-Windows: warning for using int for size_t. Solution: Declare variable as size_t.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Oct 2022 17:30:03 +0200
parents 1213e3988168
children fa309d9af73c
comparison
equal deleted inserted replaced
30856:60a5e5258f62 30857:ec7cb7e68968
1121 add_time(char_u *buf, size_t buflen, time_t tt) 1121 add_time(char_u *buf, size_t buflen, time_t tt)
1122 { 1122 {
1123 #ifdef HAVE_STRFTIME 1123 #ifdef HAVE_STRFTIME
1124 struct tm tmval; 1124 struct tm tmval;
1125 struct tm *curtime; 1125 struct tm *curtime;
1126 int n; 1126 size_t n;
1127 1127
1128 if (vim_time() - tt >= 100) 1128 if (vim_time() - tt >= 100)
1129 { 1129 {
1130 curtime = vim_localtime(&tt, &tmval); 1130 curtime = vim_localtime(&tt, &tmval);
1131 if (vim_time() - tt < (60L * 60L * 12L)) 1131 if (vim_time() - tt < (60L * 60L * 12L))