forked from aniani/vim
patch 9.0.1796: Vim9 problems with null_objects
Problem: Vim9 problems with null_objects Solution: Vim9 improve null_object usage Fix "xvar == null", where xvar might have been assigned null_object. Fix compilation failure: "var o2: C = null_object". closes: #12890 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
This commit is contained in:
committed by
Christian Brabandt
parent
d4e4ecbb37
commit
5c018bee0e
@@ -662,11 +662,11 @@ generate_SETTYPE(
|
||||
/*
|
||||
* Generate an ISN_PUSHOBJ instruction. Object is always NULL.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
generate_PUSHOBJ(cctx_T *cctx)
|
||||
{
|
||||
RETURN_OK_IF_SKIP(cctx);
|
||||
if (generate_instr_type(cctx, ISN_PUSHOBJ, &t_any) == NULL)
|
||||
if (generate_instr_type(cctx, ISN_PUSHOBJ, &t_object) == NULL)
|
||||
return FAIL;
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user