summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-06 18:59:08 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-06 18:59:08 +0000
commit7d4d87ba89f464810e961c32af1007e26b5dde80 (patch)
treef8669b8d0aa621f97d7db2fef3844d7372fa7792
parent94674f2223aafeaa4690f25e12f3ebe07814c5ba (diff)
patch 9.0.1153: build error with some compilersv9.0.1153
Problem: Build error with some compilers. Solution: Clear pointer the right way.
-rw-r--r--src/version.c2
-rw-r--r--src/vim9class.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index 74af145cdb..02841186c9 100644
--- 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,
diff --git a/src/vim9class.c b/src/vim9class.c
index eba21ce6e9..fd0a1223bb 100644
--- 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;
}