diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-07-02 19:48:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-07-02 19:48:45 +0000 |
commit | 4940878380843f18030ed1efca8dcda03c539dc1 (patch) | |
tree | 868b1a90347dc4794adc4cb6d9f3564e6829f26b | |
parent | 3bedec5364a106e804cdb2ead877fc90a9c2c4da (diff) | |
download | drakx-4940878380843f18030ed1efca8dcda03c539dc1.tar drakx-4940878380843f18030ed1efca8dcda03c539dc1.tar.gz drakx-4940878380843f18030ed1efca8dcda03c539dc1.tar.bz2 drakx-4940878380843f18030ed1efca8dcda03c539dc1.tar.xz drakx-4940878380843f18030ed1efca8dcda03c539dc1.zip |
use size_t instead of int where it should
-rw-r--r-- | perl-install/c/stuff.xs.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; |