diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-25 15:18:17 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-30 13:20:42 -0400 |
commit | fb1c02657b8c6e91e591bfc5587a805cf4e6c7c3 (patch) | |
tree | 5284f9952e94dc981f44a66f05d4d977e424997e | |
parent | 9c29630dbf64dc8768483a2482e63929ea08f5c3 (diff) | |
download | roux-fb1c02657b8c6e91e591bfc5587a805cf4e6c7c3.tar.gz |
fix bug in constants addition
-rw-r--r-- | lisc/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisc/util.c b/lisc/util.c index 90fa1bb..993a3d7 100644 --- 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; |