Skip to content

Commit dd51b45

Browse files
fix(disassembly): add the address only after constructing InstructionCtx
1 parent c8e20d5 commit dd51b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/blook/disassembly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ template <typename Range> class DisassembleRange {
146146
goto retry;
147147
} else {
148148
const auto size = r->getLength();
149+
current_value = InstructionCtx{r.value(), address};
149150
ptr += size;
150151
address += size;
151-
current_value = InstructionCtx{r.value(), address};
152152

153153
if (ptr == range_end) {
154154
over = true;

0 commit comments

Comments
 (0)