aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2024-01-31 20:02:43 +0900
committerMITSUNARI Shigeo <[email protected]>2024-01-31 20:02:43 +0900
commit49c83263a818f0c2e722ba86a75ba3966bd7d128 (patch)
tree9dc7e8e0be89efca510dbc05e372981bb12e2657
parent086530ed1304c6fa53fbc54efbe8db7196649076 (diff)
parent120154121312c370bb6dcca6c6cac9b6ff8181c8 (diff)
downloadxbyak-49c83263a818f0c2e722ba86a75ba3966bd7d128.tar.gz
xbyak-49c83263a818f0c2e722ba86a75ba3966bd7d128.zip
Merge branch 'dev'
-rw-r--r--xbyak/xbyak.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index 0e96ff5..66948ad 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -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);