shithub: scc

Download patch

ref: 39bfe028452628178b06c1f0544fd7aca1660da0
parent: 83a996bf5a87158c15f114e8c475d04dd42301de
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Apr 25 16:14:09 EDT 2016

[cc2] Conver inst.op into unsigned char

We are getting of numbers in cc2-qbe, so it is a good idea to
make this field unsigned.

--- a/cc2/cc2.h
+++ b/cc2/cc2.h
@@ -173,7 +173,7 @@
 };
 
 struct inst {
-        char op;
+        unsigned char op;
 	Symbol *label;
         Addr from1, from2, to;
         Inst *next, *prev;