diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-01 20:31:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-01 20:31:43 +0200 |
commit | 9b0ac229bcfc91acabd35fc576055a94c1687c32 (patch) | |
tree | abf68459f891591627c97c6358a8299a774e8970 /src/if_perl.xs | |
parent | 18dfb4404a618c52ee7138630a2381aed4d66eaf (diff) | |
download | vim-git-9b0ac229bcfc91acabd35fc576055a94c1687c32.tar.gz |
patch 7.4.1863v7.4.1863
Problem: Compiler warnings on Win64.
Solution: Adjust types, add type casts. (Ken Takata)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index aab7ade22..a4899945f 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -1075,7 +1075,8 @@ perl_to_vim(SV *sv, typval_T *rettv) { size_t len = 0; char * str_from = SvPV(sv, len); - char_u *str_to = (char_u*)alloc(sizeof(char_u) * (len + 1)); + char_u *str_to = (char_u*)alloc( + (unsigned)(sizeof(char_u) * (len + 1))); if (str_to) { str_to[len] = '\0'; @@ -1370,13 +1371,13 @@ PerlIOVim_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count) char_u *str; PerlIOVim * s = PerlIOSelf(f, PerlIOVim); - str = vim_strnsave((char_u *)vbuf, count); + str = vim_strnsave((char_u *)vbuf, (int)count); if (str == NULL) return 0; msg_split((char_u *)str, s->attr); vim_free(str); - return count; + return (SSize_t)count; } static PERLIO_FUNCS_DECL(PerlIO_Vim) = { |