changeset 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 da9fe882032a
children a394011bde90
files src/memline.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
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;
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4613,
+/**/
     4612,
 /**/
     4611,