diff src/memline.c @ 28175:3cc909ea91a8 v8.2.4613

patch 8.2.4613: return type of swapfile_unchanged() is wrong Commit: https://github.com/vim/vim/commit/3c5999e53d9f35a30abefb7224f66a75c8ffb009 Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Mar 23 13:54:51 2022 +0000 patch 8.2.4613: return type of swapfile_unchanged() is wrong Problem: Return type of swapfile_unchanged() is wrong. Solution: Use "int". (closes https://github.com/vim/vim/issues/10000 Yeah!)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Mar 2022 15:00:04 +0100
parents c1d1639b52dd
children 427600f3b1c5
line wrap: on
line diff
--- a/src/memline.c
+++ b/src/memline.c
@@ -2261,7 +2261,7 @@ swapfile_info(char_u *fname)
  * Return TRUE if the swap file looks OK and there are no changes, thus it can
  * be safely deleted.
  */
-    static time_t
+    static int
 swapfile_unchanged(char_u *fname)
 {
     stat_T	    st;