We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 891945e commit cf20488Copy full SHA for cf20488
src/lib.zig
@@ -614,7 +614,7 @@ pub const Lua = opaque {
614
return null;
615
} else {
616
// ptr is null, allocate a new block of memory
617
- const new_ptr = allocator_ptr.alignedAlloc(u8, alignment, nsize) catch return null;
+ const new_ptr = allocator_ptr.alignedAlloc(u8, .fromByteUnits(alignment), nsize) catch return null;
618
return new_ptr.ptr;
619
}
620
0 commit comments