diff options
author | James McCoy <jamessan@jamessan.com> | 2019-12-16 07:32:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 07:32:58 -0500 |
commit | 473aea92cb0e987bdd89b4bd27fdc1ed22705bd6 (patch) | |
tree | 980fd0c7287e295c8ac72858b0794f72224415e0 /src/nvim/eval.c | |
parent | 9f3d483c79f03c48239fdc82cc02e8685a03d22a (diff) | |
parent | 6566251d144d2c9c9e08e05c8c3a3fe9915a19b8 (diff) | |
download | rneovim-473aea92cb0e987bdd89b4bd27fdc1ed22705bd6.tar.gz rneovim-473aea92cb0e987bdd89b4bd27fdc1ed22705bd6.tar.bz2 rneovim-473aea92cb0e987bdd89b4bd27fdc1ed22705bd6.zip |
Merge pull request #11564 from jamessan/libcall
libcallnr: Use int, not int64_t, as the return type for Vim compat
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index c14b7f513d..a556f0bbbe 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -12961,7 +12961,7 @@ static void libcall_common(typval_T *argvars, typval_T *rettv, int out_type) const char *libname = (char *) argvars[0].vval.v_string; const char *funcname = (char *) argvars[1].vval.v_string; - int in_type = argvars[2].v_type; + VarType in_type = argvars[2].v_type; // input variables char *str_in = (in_type == VAR_STRING) @@ -12970,8 +12970,8 @@ static void libcall_common(typval_T *argvars, typval_T *rettv, int out_type) // output variables char **str_out = (out_type == VAR_STRING) - ? (char **) &rettv->vval.v_string : NULL; - int64_t int_out = 0; + ? (char **)&rettv->vval.v_string : NULL; + int int_out = 0; bool success = os_libcall(libname, funcname, str_in, int_in, @@ -12983,7 +12983,7 @@ static void libcall_common(typval_T *argvars, typval_T *rettv, int out_type) } if (out_type == VAR_NUMBER) { - rettv->vval.v_number = (int) int_out; + rettv->vval.v_number = (varnumber_T)int_out; } } |