Remove a superfluous test, wcrtomb() cannot return (size_t)-2.

Pointed out by Aleksey Cheusov.
This commit is contained in:
he 2007-10-25 22:22:41 +00:00
parent c4eef94666
commit 555e1d5a74

2
dist/nawk/run.c vendored
View File

@ -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;