Patch 9.0.1153

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 6, 2023, 1:59:46 PM1/6/23
to vim...@googlegroups.com

Patch 9.0.1153 (after 9.0.1152)
Problem: Build error with some compilers.
Solution: Clear pointer the right way.
Files: src/vim9class.c


*** ../vim-9.0.1152/src/vim9class.c 2023-01-06 18:42:16.430674097 +0000
--- src/vim9class.c 2023-01-06 18:56:38.599527917 +0000
***************
*** 606,612 ****
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);
ga_impl.ga_len = 0;
}

--- 606,612 ----
goto cleanup;
for (int i = 0; i < ga_impl.ga_len; ++i)
cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i];
! VIM_CLEAR(ga_impl.ga_data);
ga_impl.ga_len = 0;
}

*** ../vim-9.0.1152/src/version.c 2023-01-06 18:42:16.434674109 +0000
--- src/version.c 2023-01-06 18:58:11.595494016 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1153,
/**/

--
CART DRIVER: Bring out your dead!
LARGE MAN: Here's one!
CART DRIVER: Ninepence.
BODY: I'm not dead!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages