shithub: scc

Download patch

ref: 7c525bef21883de9bc92376eb8b038cf4c200274
parent: f2149706330f6585b2013e680e0ea15f1abdeb73
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Apr 12 05:02:29 EDT 2014

Fix small typo in arithmetic

A case was missed, and it was generating a label
instead of a switch case.

--- a/expr.c
+++ b/expr.c
@@ -124,7 +124,7 @@
 				goto incorrect;
 			/* FIX: result of comparisions is integer type */
 			break;
-		case OADD: OSUB:
+		case OADD: case OSUB:
 			tp3 = tp1->type; /* TODO: I think tp3 is not needed */
 			if (!tp1->defined)
 				goto nocomplete;
--