Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0c60c1a

Browse files
authoredMar 25, 2025··
Merge pull request #8 from kcbanner/fixup_0.14.0
Fixups for 0.14.0
2 parents e5d77a1 + 4f2b863 commit 0c60c1a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
 

‎.zigversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.14.0-dev.2577+271452d22
1+
0.14.0

‎build.zig.zon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "zphysics",
2+
.name = .zphysics,
3+
.fingerprint = 0x1def6aac00c4909d,
34
.version = "0.2.0-dev",
45
.paths = .{
56
"build.zig",

‎src/zphysics.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,7 +3938,7 @@ fn zphysicsAlloc(size: usize) callconv(.C) ?*anyopaque {
39383938

39393939
const ptr = state.?.mem_allocator.rawAlloc(
39403940
size,
3941-
std.math.log2_int(u29, @as(u29, @intCast(mem_alignment))),
3941+
std.mem.Alignment.fromByteUnits(mem_alignment),
39423942
@returnAddress(),
39433943
);
39443944
if (ptr == null) @panic("zphysics: out of memory");
@@ -3983,7 +3983,7 @@ fn zphysicsAlignedAlloc(size: usize, alignment: usize) callconv(.C) ?*anyopaque
39833983

39843984
const ptr = state.?.mem_allocator.rawAlloc(
39853985
size,
3986-
std.math.log2_int(u29, @as(u29, @intCast(alignment))),
3986+
std.mem.Alignment.fromByteUnits(alignment),
39873987
@returnAddress(),
39883988
);
39893989
if (ptr == null) @panic("zphysics: out of memory");
@@ -4007,7 +4007,7 @@ fn zphysicsFree(maybe_ptr: ?*anyopaque) callconv(.C) void {
40074007

40084008
state.?.mem_allocator.rawFree(
40094009
mem,
4010-
std.math.log2_int(u29, @as(u29, @intCast(info.alignment))),
4010+
std.mem.Alignment.fromByteUnits(info.alignment),
40114011
@returnAddress(),
40124012
);
40134013
}

0 commit comments

Comments
 (0)
Please sign in to comment.