diff --git a/src/avian/arm.h b/src/avian/arm.h index c0309486a3..ceed56e984 100644 --- a/src/avian/arm.h +++ b/src/avian/arm.h @@ -311,7 +311,7 @@ inline uint64_t dynamicCall(void* function, vfpIndex = VfpCount; } - unsigned stackSize = stackIndex * BytesPerWord + ((stackIndex & 1) << 2); + unsigned stackSize = pad(stackIndex * BytesPerWord, 16); return vmNativeCall(function, stackSize, RUNTIME_ARRAY_BODY(stack),