diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-06-15 11:15:12 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-06-15 11:15:12 +0000 |
commit | 07f197bbeeadcdcbeb13786b77aa881116c0295d (patch) | |
tree | 465b35863d0a6ee820d7a6f515b4aed989b2c000 /lib/libarchive | |
parent | fc70e49ebfd776d40b338afe8257f404b59449e0 (diff) | |
download | FreeBSD-src-07f197bbeeadcdcbeb13786b77aa881116c0295d.zip FreeBSD-src-07f197bbeeadcdcbeb13786b77aa881116c0295d.tar.gz |
Since wctomb() returns int, temporaries should be int, not size_t.
Diffstat (limited to 'lib/libarchive')
-rw-r--r-- | lib/libarchive/archive_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |