Mercurial > vim
comparison src/mbyte.c @ 24246:35603c7991d7 v8.2.2664
patch 8.2.2664: Vim9: not enough function arguments checked for string
Commit: https://github.com/vim/vim/commit/32105ae88f3aa6a6af30336f0bc9f8eb81292cd7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 27 18:59:25 2021 +0100
patch 8.2.2664: Vim9: not enough function arguments checked for string
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Mar 2021 19:00:04 +0100 |
parents | 083f07f99e20 |
children | 7b84cf514dd8 |
comparison
equal
deleted
inserted
replaced
24245:5e22bf689c9f | 24246:35603c7991d7 |
---|---|
5549 } | 5549 } |
5550 | 5550 |
5551 void | 5551 void |
5552 f_charclass(typval_T *argvars, typval_T *rettv UNUSED) | 5552 f_charclass(typval_T *argvars, typval_T *rettv UNUSED) |
5553 { | 5553 { |
5554 if (check_for_string(&argvars[0], 1) == FAIL) | 5554 if (check_for_string_arg(argvars, 0) == FAIL) |
5555 return; | 5555 return; |
5556 rettv->vval.v_number = mb_get_class(argvars[0].vval.v_string); | 5556 rettv->vval.v_number = mb_get_class(argvars[0].vval.v_string); |
5557 } | 5557 } |
5558 #endif | 5558 #endif |