From 07f197bbeeadcdcbeb13786b77aa881116c0295d Mon Sep 17 00:00:00 2001 From: kientzle Date: Sun, 15 Jun 2008 11:15:12 +0000 Subject: Since wctomb() returns int, temporaries should be int, not size_t. --- lib/libarchive/archive_string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libarchive/archive_string.c') diff --git a/lib/libarchive/archive_string.c b/lib/libarchive/archive_string.c index c9a04d7..e3387c1 100644 --- a/lib/libarchive/archive_string.c +++ b/lib/libarchive/archive_string.c @@ -206,7 +206,7 @@ static int my_wcstombs(struct archive_string *as, const wchar_t *w, int (*func)(char *, wchar_t)) { - size_t n; + int n; char *p; char buff[256]; @@ -227,7 +227,7 @@ my_wcstombs(struct archive_string *as, const wchar_t *w, p = buff; } n = (*func)(p, *w++); - if (n == (size_t)-1) + if (n == -1) return (-1); p += n; } -- cgit v1.1