scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 0f3dfe60dbc570744ada7af40efd74c2950cb7ba
parent e2c5b2c6dacc3a0c42fe14b79d05abc0acb42d1f
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
Date:   Mon, 25 Apr 2016 20:14:09 +0200

[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.

Diffstat:
Mcc2/cc2.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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