1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Kevin Newton 2022-07-15 16:06:53 -04:00 committed by Takashi Kokubun
parent 7787ef29fe
commit c83198911a
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -570,7 +570,7 @@ impl Assembler
// to assume we can fit into a single b instruction.
// It will panic otherwise.
cb.label_ref(label_idx, 4, |cb, src_addr, dst_addr| {
b(cb, A64Opnd::new_imm((dst_addr - src_addr) / 4));
b(cb, A64Opnd::new_imm((dst_addr - src_addr) / 4 + 1));
});
},
_ => unreachable!()