From 555e1d5a7425c742a80c2a0644c706d79b94361b Mon Sep 17 00:00:00 2001 From: he Date: Thu, 25 Oct 2007 22:22:41 +0000 Subject: [PATCH] Remove a superfluous test, wcrtomb() cannot return (size_t)-2. Pointed out by Aleksey Cheusov. --- dist/nawk/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/nawk/run.c b/dist/nawk/run.c index f7a0567d2b44..dc5a86fad763 100644 --- a/dist/nawk/run.c +++ b/dist/nawk/run.c @@ -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;