From 4940878380843f18030ed1efca8dcda03c539dc1 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 2 Jul 2001 19:48:45 +0000 Subject: use size_t instead of int where it should --- perl-install/c/stuff.xs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm index 7397f37ef..cd250e4a3 100644 --- a/perl-install/c/stuff.xs.pm +++ b/perl-install/c/stuff.xs.pm @@ -471,11 +471,11 @@ iconv(s, from_charset, to_charset) iconv_t cd = iconv_open(to_charset, from_charset); RETVAL = s; if (cd != (iconv_t) (-1)) { - int s_len = strlen(RETVAL); + size_t s_len = strlen(RETVAL); char *buf = alloca(3 * s_len + 10); /* 10 for safety, it should not be needed */ { char *ptr = buf; - int ptr_len = 3 * s_len + 10; + size_t ptr_len = 3 * s_len + 10; if ((iconv(cd, &s, &s_len, &ptr, &ptr_len)) != (size_t) (-1)) { *ptr = 0; RETVAL = buf; -- cgit v1.2.1