ex: fix vmem bug

This commit is contained in:
Loïc Grégoire
2026-09-27 17:40:55 -04:00
parent 672f04a833
commit d03251d3e0
+1 -1
View File
@@ -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;
} }