mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2224: Vim9: crash if script reloaded with different variable type
Problem: Vim9: crash if script reloaded with different variable type. Solution: Check the type when accessing the variable.
This commit is contained in:
@@ -853,7 +853,7 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error)
|
||||
/*
|
||||
* Check if "type1" and "type2" are exactly the same.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
equal_type(type_T *type1, type_T *type2)
|
||||
{
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user