changeset 31641:88aa7f62cc78 v9.0.1153

patch 9.0.1153: build error with some compilers Commit: https://github.com/vim/vim/commit/7d4d87ba89f464810e961c32af1007e26b5dde80 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 6 18:59:08 2023 +0000 patch 9.0.1153: build error with some compilers Problem: Build error with some compilers. Solution: Clear pointer the right way.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Jan 2023 20:00:05 +0100
parents 1e82a58f7cfa
children ac2cc89f4bb8
files src/version.c src/vim9class.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1153,
+/**/
     1152,
 /**/
     1151,
--- a/src/vim9class.c
+++ b/src/vim9class.c
@@ -606,7 +606,7 @@ early_ret:
 		goto cleanup;
 	    for (int i = 0; i < ga_impl.ga_len; ++i)
 		cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i];
-	    CLEAR_POINTER(ga_impl.ga_data);
+	    VIM_CLEAR(ga_impl.ga_data);
 	    ga_impl.ga_len = 0;
 	}