From fb1c02657b8c6e91e591bfc5587a805cf4e6c7c3 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 25 Oct 2015 15:18:17 -0400 Subject: fix bug in constants addition --- lisc/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lisc/util.c') 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; -- cgit 1.4.1