summaryrefslogtreecommitdiff
path: root/misc/yjit_asm_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/yjit_asm_tests.c')
-rw-r--r--misc/yjit_asm_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/yjit_asm_tests.c b/misc/yjit_asm_tests.c
index b37d483ecf..ccf8822bbe 100644
--- a/misc/yjit_asm_tests.c
+++ b/misc/yjit_asm_tests.c
@@ -26,7 +26,7 @@ void print_bytes(codeblock_t* cb)
{
for (uint32_t i = 0; i < cb->write_pos; ++i)
{
- printf("%02X", (int)cb->mem_block[i]);
+ printf("%02X", (int)*cb_get_ptr(cb, i));
}
printf("\n");
@@ -59,7 +59,7 @@ void check_bytes(codeblock_t* cb, const char* bytes)
char* endptr;
long int byte = strtol(byte_str, &endptr, 16);
- uint8_t cb_byte = cb->mem_block[i];
+ uint8_t cb_byte = *cb_get_ptr(cb, i);
if (cb_byte != byte)
{