summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-10 19:23:28 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-10 19:23:28 +0000
commit53ba6ca5b27248680e368340707ad4b32a82591f (patch)
tree11bb97a5a313ac3abebcf96862c5d630e07a6e14 /src/vim9compile.c
parentbf40e90dfeb1d3d0280077e65782beb3fee31c9f (diff)
downloadvim-git-53ba6ca5b27248680e368340707ad4b32a82591f.tar.gz
patch 8.2.4539: when comparing special v:none and v:null are handled the samev8.2.4539
Problem: When comparing special v:none and v:null are handled the same when compiling. Solution: Pass more information so that v:none can be handled differently at compile time. (issue #9923)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 6a3c32aad..25376d052 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1799,7 +1799,7 @@ compile_assign_unlet(
return FAIL;
}
type = get_type_on_stack(cctx, 0);
- if ((dest_type != VAR_BLOB && type != &t_special)
+ if ((dest_type != VAR_BLOB && type->tt_type != VAR_SPECIAL)
&& need_type(type, &t_number,
-1, 0, cctx, FALSE, FALSE) == FAIL)
return FAIL;