commit f9c47e070844f7752b18e63197f2819ce106386c
parent be306281fac02e415d76081567520ffecad06adc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 16 Oct 2024 10:50:37 +0200
cc1: Return from ctype()
When an invalid case happen then we were calling error(), but we
can continue the execution and return int as default type when
an error happens.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cmd/cc/cc1/types.c b/src/cmd/cc/cc1/types.c
@@ -171,7 +171,8 @@ ctype(int type, int sign, int size)
}
invalid_type:
- error("invalid type specification");
+ errorp("invalid type specification");
+ return inttype;
}
void