Fix incorrect displacement with bound labels for X64

This commit is contained in:
Johannes Blume
2014-04-16 10:20:47 +02:00
parent 906f89bfc5
commit e1aa4741cc

View File

@@ -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 {