scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 5b35e65361c2054625e485c800e9672f000b258c
parent a72eb28716ee34d787a6a1a076fe0c9cb2715aa9
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  2 May 2021 15:16:29 +0200

cc1/expr: Return a value on error in arithmetic()

This will let the compiler continuing on building until it encounters
the maximum number of errors.

Diffstat:
Msrc/cmd/cc/cc1/expr.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc1/expr.c b/src/cmd/cc/cc1/expr.c @@ -348,6 +348,7 @@ arithmetic(int op, Node *lp, Node *rp) } } errorp("incorrect arithmetic operands"); + return lp; } static Node *