aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2024-06-16 22:31:38 +0200
committerQuentin Carbonneaux <[email protected]>2024-06-16 22:31:38 +0200
commitb5be429091ecc26a5f4f6df777aa99655f868f2a (patch)
tree518674d4401d5d51b722134adf90d05f50db9e54
parentddf5ced4a7eb10629d180c09c631812fa568d917 (diff)
fix unintended assignment
-rw-r--r--amd64/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amd64/isel.c b/amd64/isel.c
index b94392e..2b92878 100644
--- a/amd64/isel.c
+++ b/amd64/isel.c
@@ -754,7 +754,7 @@ amatch(Addr *a, Num *tn, Ref r, Fn *fn)
if (!req(rs, R)) {
assert(rtype(rs) == RCon);
c = &fn->con[rs.val];
- assert(c->type = CBits);
+ assert(c->type == CBits);
s = c->bits.i;
}
ri = adisp(&co, tn, ri, fn, s);