[hackers] [scc] [cc2] Conver inst.op into unsigned char || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 27 Apr 2016 20:46:33 +0200 (CEST)

commit 0f3dfe60dbc570744ada7af40efd74c2950cb7ba
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
AuthorDate: Mon Apr 25 20:14:09 2016 +0200
Commit: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
CommitDate: Mon Apr 25 20:14:09 2016 +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.

diff --git a/cc2/cc2.h b/cc2/cc2.h
index 40b805b..e72ea8e 100644
--- a/cc2/cc2.h
+++ b/cc2/cc2.h
_AT_@ -173,7 +173,7 @@ struct addr {
 };
 
 struct inst {
- char op;
+ unsigned char op;
         Symbol *label;
         Addr from1, from2, to;
         Inst *next, *prev;
Received on Wed Apr 27 2016 - 20:46:33 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 27 2016 - 20:48:18 CEST