mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
Fix incorrect displacement with bound labels for X64
This commit is contained in:
@@ -3340,7 +3340,7 @@ _EmitSib:
|
||||
|
||||
if (label->offset != -1) {
|
||||
// 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));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user