mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +00:00
fix bug in constants addition
This commit is contained in:
parent
9c29630dbf
commit
fb1c02657b
@ -202,6 +202,7 @@ addcon(Con *c0, Con *c1)
|
|||||||
if (c1->type == CAddr) {
|
if (c1->type == CAddr) {
|
||||||
if (c0->type == CAddr)
|
if (c0->type == CAddr)
|
||||||
diag("addcon: adding two addresses");
|
diag("addcon: adding two addresses");
|
||||||
|
c0->type = CAddr;
|
||||||
strcpy(c0->label, c1->label);
|
strcpy(c0->label, c1->label);
|
||||||
}
|
}
|
||||||
c0->val += c1->val;
|
c0->val += c1->val;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user