diff options
Diffstat (limited to 'yjit/src/asm/x86_64/tests.rs')
-rw-r--r-- | yjit/src/asm/x86_64/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/asm/x86_64/tests.rs b/yjit/src/asm/x86_64/tests.rs index c77d30e74d..ffcc063420 100644 --- a/yjit/src/asm/x86_64/tests.rs +++ b/yjit/src/asm/x86_64/tests.rs @@ -7,7 +7,7 @@ use std::fmt; impl<'a> fmt::LowerHex for super::CodeBlock { fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result { for pos in 0..self.write_pos { - let byte = unsafe { self.mem_block.add(pos).read() }; + let byte = unsafe { self.mem_block.start_ptr().raw_ptr().add(pos).read() }; fmtr.write_fmt(format_args!("{:02x}", byte))?; } Ok(()) |