Skip to content

Commit cf20488

Browse files
committed
fix breaking change for zig 0.15.0-dev.375+8f8f37fb0
1 parent 891945e commit cf20488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ pub const Lua = opaque {
614614
return null;
615615
} else {
616616
// ptr is null, allocate a new block of memory
617-
const new_ptr = allocator_ptr.alignedAlloc(u8, alignment, nsize) catch return null;
617+
const new_ptr = allocator_ptr.alignedAlloc(u8, .fromByteUnits(alignment), nsize) catch return null;
618618
return new_ptr.ptr;
619619
}
620620
}

0 commit comments

Comments
 (0)