shithub: scc

Download patch

ref: b9728db82bc35ed52a48fb538a9d4a40e251b32f
parent: 83f9c3d38147ea9ed733c49939df819d5aad8732
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Mar 30 05:47:06 EDT 2022

cc1: Remove trailing semicolon

--- a/src/cmd/cc/cc1/expr.c
+++ b/src/cmd/cc/cc1/expr.c
@@ -375,7 +375,7 @@
 		return pcompare(op, lp, rp);
 	} else if ((ltp->prop & TARITH) && (rtp->prop & TARITH)) {
 		arithconv(&lp, &rp);
-		return convert(node(op, lp->type, lp, rp), inttype, 1);;
+		return convert(node(op, lp->type, lp, rp), inttype, 1);
 	} else {
 		errorp("incompatible types in comparison");
 		freetree(lp);