Skip to content

Commit 6b1fabe

Browse files
authored
Merge pull request #149 from natecraddock/sig-fix
Fix breaking change for signature of alignedAlloc
2 parents 891945e + 2ac8d68 commit 6b1fabe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/configure-pages@v5
2828
- uses: mlugg/setup-zig@v1
2929
with:
30-
version: 0.14.0
30+
version: 0.15.0-dev.375+8f8f37fb0
3131
- run: make docs
3232
- name: Upload artifact
3333
uses: actions/upload-pages-artifact@v3

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Zig
2121
uses: mlugg/setup-zig@v1
2222
with:
23-
version: 0.14.0
23+
version: 0.15.0-dev.375+8f8f37fb0
2424

2525
- name: Run tests
2626
run: make test

src/lib.zig

+1-1
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)