diff options
author | ZyX <kp-pav@yandex.ru> | 2018-04-15 20:05:17 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-04-15 20:07:07 +0300 |
commit | 17e21eae24ff001eae0a74e252acab5992adb5dc (patch) | |
tree | 73cc30077906ab9e46a1187abb7379087fe56bff /src | |
parent | 092b4d9774c630c4e3805a3d2b6257ed5dbfc7ff (diff) | |
download | rneovim-17e21eae24ff001eae0a74e252acab5992adb5dc.tar.gz rneovim-17e21eae24ff001eae0a74e252acab5992adb5dc.tar.bz2 rneovim-17e21eae24ff001eae0a74e252acab5992adb5dc.zip |
eval: Silence PVS/V547: PVS cannot stand `!known_val` expressions
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 036caf6e6a..e38f7e7dda 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2682,7 +2682,7 @@ void ex_call(exarg_T *eap) return; } - tofree = trans_function_name(&arg, eap->skip, TFN_INT, &fudi, &partial); + tofree = trans_function_name(&arg, false, TFN_INT, &fudi, &partial); if (fudi.fd_newkey != NULL) { // Still need to give an error message for missing key. EMSG2(_(e_dictkey), fudi.fd_newkey); @@ -2725,13 +2725,13 @@ void ex_call(exarg_T *eap) arg = startarg; if (get_func_tv(name, (int)STRLEN(name), &rettv, &arg, eap->line1, eap->line2, &doesrange, - !eap->skip, partial, fudi.fd_dict) == FAIL) { + true, partial, fudi.fd_dict) == FAIL) { failed = true; break; } // Handle a function returning a Funcref, Dictionary or List. - if (handle_subscript((const char **)&arg, &rettv, !eap->skip, true) + if (handle_subscript((const char **)&arg, &rettv, true, true) == FAIL) { failed = true; break; |