mirror of
https://github.com/corda/corda.git
synced 2025-06-19 07:38:22 +00:00
fix offset calculations in arm.cpp and powerpc.cpp
This commit is contained in:
@ -2413,12 +2413,13 @@ class MyAssembler: public Assembler {
|
||||
poolSize += TargetBytesPerWord;
|
||||
}
|
||||
|
||||
if (needJump(b)) {
|
||||
bool jump = needJump(b);
|
||||
if (jump) {
|
||||
write4
|
||||
(dst + dstOffset, ::b((poolSize + TargetBytesPerWord - 8) >> 2));
|
||||
}
|
||||
|
||||
dstOffset += poolSize + TargetBytesPerWord;
|
||||
dstOffset += poolSize + (jump ? TargetBytesPerWord : 0);
|
||||
}
|
||||
|
||||
unsigned size = b->size - blockOffset;
|
||||
|
Reference in New Issue
Block a user