mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
ex: fix vmem bug
This commit is contained in:
+1
-1
@@ -235,7 +235,7 @@ pub const Arena = struct {
|
|||||||
size: usize,
|
size: usize,
|
||||||
options: AllocOptions,
|
options: AllocOptions,
|
||||||
) mm.Error!usize {
|
) mm.Error!usize {
|
||||||
if (size & self.qshift != 0) {
|
if (size & (self.quantum - 1) != 0) {
|
||||||
return error.InvalidSize;
|
return error.InvalidSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user