diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-17 13:21:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-17 13:21:20 +0100 |
commit | 239f8d932672bcf5be6d32fc7c0bf95a2e69f5eb (patch) | |
tree | 950e8c237ade15f7c7b3d1138b47531736699423 /src/evalfunc.c | |
parent | e2edc2ed4a9a229870b1e1811b0ecf045b84e429 (diff) |
patch 8.2.2367: test failures on some less often used systemsv8.2.2367
Problem: Test failures on some less often used systems.
Solution: Adjust printf formats and types. (James McCoy, closes #7691)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index c9acd4136b..9c3e9f56fc 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2567,7 +2567,7 @@ f_charidx(typval_T *argvars, typval_T *rettv) { char_u *str; varnumber_T idx; - int countcc = FALSE; + varnumber_T countcc = FALSE; char_u *p; int len; int (*ptr2len)(char_u *); @@ -2588,7 +2588,7 @@ f_charidx(typval_T *argvars, typval_T *rettv) return; if (argvars[2].v_type != VAR_UNKNOWN) - countcc = (int)tv_get_bool(&argvars[2]); + countcc = tv_get_bool(&argvars[2]); if (countcc < 0 || countcc > 1) { semsg(_(e_using_number_as_bool_nr), countcc); @@ -2848,11 +2848,11 @@ f_debugbreak(typval_T *argvars, typval_T *rettv) static void f_deepcopy(typval_T *argvars, typval_T *rettv) { - int noref = 0; + varnumber_T noref = 0; int copyID; if (argvars[1].v_type != VAR_UNKNOWN) - noref = (int)tv_get_bool_chk(&argvars[1], NULL); + noref = tv_get_bool_chk(&argvars[1], NULL); if (noref < 0 || noref > 1) semsg(_(e_using_number_as_bool_nr), noref); else @@ -9185,12 +9185,12 @@ f_strlen(typval_T *argvars, typval_T *rettv) f_strchars(typval_T *argvars, typval_T *rettv) { char_u *s = tv_get_string(&argvars[0]); - int skipcc = FALSE; + varnumber_T skipcc = FALSE; varnumber_T len = 0; int (*func_mb_ptr2char_adv)(char_u **pp); if (argvars[1].v_type != VAR_UNKNOWN) - skipcc = (int)tv_get_bool(&argvars[1]); + skipcc = tv_get_bool(&argvars[1]); if (skipcc < 0 || skipcc > 1) semsg(_(e_using_number_as_bool_nr), skipcc); else |