shithub: scc

Download patch

ref: da0ce9f484c0d744fed1e22af2651734c4830d73
parent: 02fb869bc63d7b49765e993ba2c8115e0bc54251
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Apr 15 13:25:10 EDT 2014

Fix substraction

The string for substraction was missed, and a segmentation fault
could happen.

--- a/code.c
+++ b/code.c
@@ -6,6 +6,7 @@
 
 char *opcodes[] = {
 	[OADD] = "+",
+	[OSUB] = "-",
 	[OMUL] = "*",
 	[OARY] = "'",
 	[OINC] = ":+",