mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
Fix incorrect displacement with bound labels for X64
This commit is contained in:
@@ -3340,7 +3340,7 @@ _EmitSib:
|
|||||||
|
|
||||||
if (label->offset != -1) {
|
if (label->offset != -1) {
|
||||||
// Bound label.
|
// Bound label.
|
||||||
dispOffset += static_cast<int32_t>((intptr_t)(cursor - self->_buffer) - label->offset);
|
dispOffset += label->offset - static_cast<int32_t>((intptr_t)(cursor - self->_buffer));
|
||||||
EMIT_DWORD(static_cast<int32_t>(dispOffset));
|
EMIT_DWORD(static_cast<int32_t>(dispOffset));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user