comparison src/vim9instr.c @ 33008:ba1b40b520e8 v9.0.1796

patch 9.0.1796: Vim9 problems with null_objects Commit: https://github.com/vim/vim/commit/5c018bee0e1e272774584cfb1577327fbb67254a Author: Ernie Rael <errael@raelity.com> Date: Sun Aug 27 18:40:26 2023 +0200 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>
author Christian Brabandt <cb@256bit.org>
date Sun, 27 Aug 2023 18:45:08 +0200
parents b3a42579bb3f
children 669898c9a6c3
comparison
equal deleted inserted replaced
33007:e7561ca6e020 33008:ba1b40b520e8
660 } 660 }
661 661
662 /* 662 /*
663 * Generate an ISN_PUSHOBJ instruction. Object is always NULL. 663 * Generate an ISN_PUSHOBJ instruction. Object is always NULL.
664 */ 664 */
665 static int 665 int
666 generate_PUSHOBJ(cctx_T *cctx) 666 generate_PUSHOBJ(cctx_T *cctx)
667 { 667 {
668 RETURN_OK_IF_SKIP(cctx); 668 RETURN_OK_IF_SKIP(cctx);
669 if (generate_instr_type(cctx, ISN_PUSHOBJ, &t_any) == NULL) 669 if (generate_instr_type(cctx, ISN_PUSHOBJ, &t_object) == NULL)
670 return FAIL; 670 return FAIL;
671 return OK; 671 return OK;
672 } 672 }
673 673
674 /* 674 /*