]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool v8.2.1506
authorBram Moolenaar <Bram@vim.org>
Sat, 22 Aug 2020 13:06:35 +0000 (15:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 22 Aug 2020 13:06:35 +0000 (15:06 +0200)
commitd70840ed68296c1144d743e6335003c81c558c24
tree2fe663bae5737733924e71796559725f5be472ad
parent1b04ce2d400fda97410a961288c496bd8f445a9c
patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool

Problem:    Vim9: no error when using a number other than 0 or 1 as bool.
Solution:   Check the number is 0 or 1.
src/errors.h
src/testdir/test_vim9_func.vim
src/typval.c
src/version.c