Merge branch 'dev'

This commit is contained in:
MITSUNARI Shigeo 2024-01-31 20:02:43 +09:00
commit 49c83263a8

View file

@ -3215,7 +3215,7 @@ public:
{
if (x == 1) return;
if (x < 1 || (x & (x - 1))) XBYAK_THROW(ERR_BAD_ALIGN)
if (isAutoGrow()) XBYAK_THROW(ERR_BAD_ALIGN)
if (isAutoGrow() && inner::getPageSize() % x != 0) XBYAK_THROW(ERR_BAD_ALIGN)
size_t remain = size_t(getCurr()) % x;
if (remain) {
nop(x - remain, useMultiByteNop);