summaryrefslogtreecommitdiff
path: root/src/if_perl.xs
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs7
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) = {