mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Since wctomb() returns int, temporaries should be int, not size_t.
This commit is contained in:
parent
936d273c3a
commit
4a9c863c87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179801
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue