0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.3.1176

Problem:    Compiler warnings on 64 bit system.
Solution:   Add type casts. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2013-06-12 18:13:38 +02:00
parent 2d473ab932
commit edb07a2d88
3 changed files with 6 additions and 3 deletions

View File

@@ -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);