diff src/evalfunc.c @ 25559:4b07859e1646 v8.2.3316

patch 8.2.3316: float test fails Commit: https://github.com/vim/vim/commit/80a070c36125662556232ab6e83da373e22953d8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 8 15:51:10 2021 +0200 patch 8.2.3316: float test fails Problem: Float test fails. Solution: Add missing change.
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Aug 2021 16:00:03 +0200
parents 446f478d6fb1
children c4e29355cd8b
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1972,7 +1972,7 @@ static funcentry_T global_functions[] =
 			ret_list_number,    f_srand},
     {"state",		0, 1, FEARG_1,	    arg1_string,
 			ret_string,	    f_state},
-    {"str2float",	1, 1, FEARG_1,	    arg1_string,
+    {"str2float",	1, 2, FEARG_1,	    arg2_string_bool,
 			ret_float,	    FLOAT_FUNC(f_str2float)},
     {"str2list",	1, 2, FEARG_1,	    arg2_string_bool,
 			ret_list_number,    f_str2list},