From abfe132b83219efa30220ecfdaf6e26e31b9d13d Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sun, 3 Jan 2021 01:19:12 +0300 Subject: Input-output added. --- examples/translator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/translator.c') diff --git a/examples/translator.c b/examples/translator.c index 448d052..ad676c0 100644 --- a/examples/translator.c +++ b/examples/translator.c @@ -14,7 +14,7 @@ void readlist() readlist(); printf("0)"); c = getchar(); - } else if (isdigit(c)) { + } else if (isdigit(c) || c == '-') { if (first) first = 0; else putchar(','); printf("csx_num("); -- cgit v1.2.3