commit fb1c02657b8c6e91e591bfc5587a805cf4e6c7c3
parent 9c29630dbf64dc8768483a2482e63929ea08f5c3
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sun, 25 Oct 2015 15:18:17 -0400
fix bug in constants addition
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lisc/util.c b/lisc/util.c
@@ -202,6 +202,7 @@ addcon(Con *c0, Con *c1)
if (c1->type == CAddr) {
if (c0->type == CAddr)
diag("addcon: adding two addresses");
+ c0->type = CAddr;
strcpy(c0->label, c1->label);
}
c0->val += c1->val;