diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-12 18:13:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-12 18:13:38 +0200 |
commit | edb07a2d889481525396eb76cd5bff4be592784e (patch) | |
tree | dbd52cfa4b5c63bdaafda98b32426729b5110be4 /src/eval.c | |
parent | 2d473ab932b5c46a77715ea507de3990b70d96c1 (diff) | |
download | vim-edb07a2d889481525396eb76cd5bff4be592784e.zip |
updated for version 7.3.1176
Problem: Compiler warnings on 64 bit system.
Solution: Add type casts. (Mike Williams)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 4e4bbc04e..18512a97e 100644 --- a/src/eval.c +++ b/src/eval.c @@ -10980,7 +10980,8 @@ f_function(argvars, rettv) * also work, but some plugins depend on the name being printable * text. */ sprintf(sid_buf, "<SNR>%ld_", (long)current_SID); - rettv->vval.v_string = alloc(STRLEN(sid_buf) + STRLEN(s + 2) + 1); + rettv->vval.v_string = + alloc((int)(STRLEN(sid_buf) + STRLEN(s + 2) + 1)); if (rettv->vval.v_string != NULL) { STRCPY(rettv->vval.v_string, sid_buf); |