comparison src/typval.c @ 22043:4bc644f4dd2d v8.2.1571

patch 8.2.1571: Vim9: count() third argument cannot be "true" Commit: https://github.com/vim/vim/commit/119f5572306c4abba91eaf446c0c52637db223e8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 2 21:31:22 2020 +0200 patch 8.2.1571: Vim9: count() third argument cannot be "true" Problem: Vim9: count() third argument cannot be "true". Solution: use tv_get_bool_chk(). (closes https://github.com/vim/vim/issues/6818)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Sep 2020 21:45:03 +0200
parents 71f886a48ef5
children 07e48ee8c3bb
comparison
equal deleted inserted replaced
22042:190d0dee74f7 22043:4bc644f4dd2d
281 */ 281 */
282 varnumber_T 282 varnumber_T
283 tv_get_bool_chk(typval_T *varp, int *denote) 283 tv_get_bool_chk(typval_T *varp, int *denote)
284 { 284 {
285 return tv_get_bool_or_number_chk(varp, denote, TRUE); 285 return tv_get_bool_or_number_chk(varp, denote, TRUE);
286
287 } 286 }
288 287
289 #ifdef FEAT_FLOAT 288 #ifdef FEAT_FLOAT
290 float_T 289 float_T
291 tv_get_float(typval_T *varp) 290 tv_get_float(typval_T *varp)