Remove a superfluous test, wcrtomb() cannot return (size_t)-2.
Pointed out by Aleksey Cheusov.
This commit is contained in:
parent
c4eef94666
commit
555e1d5a74
2
dist/nawk/run.c
vendored
2
dist/nawk/run.c
vendored
@ -1497,7 +1497,7 @@ static char *nawk_toXXX(const char *s,
|
||||
ps += n;
|
||||
|
||||
n = wcrtomb(pbuf, fun_wc(wc), &mbs2);
|
||||
if (n == (size_t)-1 || n == (size_t)-2)
|
||||
if (n == (size_t)-1)
|
||||
FATAL("illegal wide character %s", s);
|
||||
|
||||
pbuf += n;
|
||||
|
Loading…
Reference in New Issue
Block a user