mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.4280: list-dict test crashes
Problem: list-dict test crashes. Solution: Check declared type for add().
This commit is contained in:
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4280,
|
||||||
/**/
|
/**/
|
||||||
4279,
|
4279,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -759,7 +759,7 @@ compile_call(
|
|||||||
|
|
||||||
if (STRCMP(name, "add") == 0 && argcount == 2)
|
if (STRCMP(name, "add") == 0 && argcount == 2)
|
||||||
{
|
{
|
||||||
type_T *type = get_type_on_stack(cctx, 1);
|
type_T *type = get_decl_type_on_stack(cctx, 1);
|
||||||
|
|
||||||
// add() can be compiled to instructions if we know the type
|
// add() can be compiled to instructions if we know the type
|
||||||
if (type->tt_type == VAR_LIST)
|
if (type->tt_type == VAR_LIST)
|
||||||
|
Reference in New Issue
Block a user