From d3edf6c07e8a402417323cbeb6d1ef93231c5262 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Mon, 14 Nov 2022 09:11:02 +0100 Subject: Wrong test for coroutined decompressor Use of `char` instead of `int` caused nontermination on platforms where `char` is unsigned. Fixes: #462 --- test/regression/switch3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regression/switch3.c b/test/regression/switch3.c index f411a3fb..df3ad747 100644 --- a/test/regression/switch3.c +++ b/test/regression/switch3.c @@ -164,7 +164,7 @@ int main() quotestring("(ab$cd)", 0); putchar('\n'); quotestring("(ab$cd)", 1); putchar('\n'); - char c; + int c; while ((c = decompressor()) != EOF) putchar(c); testpigeon(FORWARD); -- cgit