diff options
| author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-01-24 18:21:18 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:27 -0400 |
| commit | 9def269b470f74d8ea4bb7919f927d16efb35cfa (patch) | |
| tree | 7fbd6ab812f2239b2a124e51028cb25f22c542e5 /ujit_iface.c | |
| parent | 79d6e9618d8215f936a3c938d192753906412c02 (diff) | |
Fix issue with block address accessor. Print absolute addresses.
Diffstat (limited to 'ujit_iface.c')
| -rw-r--r-- | ujit_iface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ujit_iface.c b/ujit_iface.c index 981c882ceb..7c553f4b3c 100644 --- a/ujit_iface.c +++ b/ujit_iface.c @@ -335,7 +335,8 @@ block_address(VALUE self) { block_t * block; TypedData_Get_Struct(self, block_t, &ujit_block_type, block); - return LONG2NUM((intptr_t)block); + uint8_t* code_addr = cb_get_ptr(cb, block->start_pos); + return LONG2NUM((intptr_t)code_addr); } /* Get the machine code for UJIT::Block as a binary string */ |
