Mercurial > vim
comparison src/filepath.c @ 24822:5f8dd7b3ae41 v8.2.2949
patch 8.2.2949: tests failing because no error for float to string conversion
Commit: https://github.com/vim/vim/commit/3cfa5b16b06bcc034f6de77070fa779d698ab5e9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 6 14:14:39 2021 +0200
patch 8.2.2949: tests failing because no error for float to string conversion
Problem: Tests failing because there is no error for float to string
conversion.
Solution: Change the check for failure to check for correct result. Make
some conversions strict in Vim9 script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Jun 2021 14:15:04 +0200 |
parents | 01b274c3f69b |
children | 8f2262c72178 |
comparison
equal
deleted
inserted
replaced
24821:0218caefb9b8 | 24822:5f8dd7b3ae41 |
---|---|
1299 * "glob2regpat()" function | 1299 * "glob2regpat()" function |
1300 */ | 1300 */ |
1301 void | 1301 void |
1302 f_glob2regpat(typval_T *argvars, typval_T *rettv) | 1302 f_glob2regpat(typval_T *argvars, typval_T *rettv) |
1303 { | 1303 { |
1304 char_u *pat = tv_get_string_chk(&argvars[0]); | 1304 char_u buf[NUMBUFLEN]; |
1305 char_u *pat = tv_get_string_buf_chk_strict(&argvars[0], buf, | |
1306 in_vim9script()); | |
1305 | 1307 |
1306 rettv->v_type = VAR_STRING; | 1308 rettv->v_type = VAR_STRING; |
1307 rettv->vval.v_string = (pat == NULL) | 1309 rettv->vval.v_string = (pat == NULL) |
1308 ? NULL : file_pat_to_reg_pat(pat, NULL, NULL, FALSE); | 1310 ? NULL : file_pat_to_reg_pat(pat, NULL, NULL, FALSE); |
1309 } | 1311 } |