mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix #3581 due to typo
This commit is contained in:
@@ -1180,7 +1180,7 @@ gb_internal lbValue lb_addr_load(lbProcedure *p, lbAddr const &addr) {
|
|||||||
Type *t = addr.bitfield.type;
|
Type *t = addr.bitfield.type;
|
||||||
|
|
||||||
if (do_mask) {
|
if (do_mask) {
|
||||||
GB_ASSERT(addr.bitfield.bit_size < 8*type_size_of(ct));
|
GB_ASSERT(addr.bitfield.bit_size <= 8*type_size_of(ct));
|
||||||
|
|
||||||
lbValue mask = lb_const_int(p->module, t, (1ull<<cast(u64)addr.bitfield.bit_size)-1);
|
lbValue mask = lb_const_int(p->module, t, (1ull<<cast(u64)addr.bitfield.bit_size)-1);
|
||||||
r = lb_emit_arith(p, Token_And, r, mask, t);
|
r = lb_emit_arith(p, Token_And, r, mask, t);
|
||||||
|
|||||||
Reference in New Issue
Block a user