From eeb690559701a0fb04889640860569e72ea86fb3 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Sun, 9 Mar 2025 16:46:51 -0400 Subject: [PATCH 1/2] - Fixups for 0.14.0 --- build.zig.zon | 3 ++- src/zphysics.zig | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index ab53031..791865c 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,5 +1,6 @@ .{ - .name = "zphysics", + .name = .zphysics, + .fingerprint = 0x1def6aac00c4909d, .version = "0.2.0-dev", .paths = .{ "build.zig", diff --git a/src/zphysics.zig b/src/zphysics.zig index aa2e5e2..d51d385 100644 --- a/src/zphysics.zig +++ b/src/zphysics.zig @@ -3938,7 +3938,7 @@ fn zphysicsAlloc(size: usize) callconv(.C) ?*anyopaque { const ptr = state.?.mem_allocator.rawAlloc( size, - std.math.log2_int(u29, @as(u29, @intCast(mem_alignment))), + std.mem.Alignment.fromByteUnits(mem_alignment), @returnAddress(), ); if (ptr == null) @panic("zphysics: out of memory"); @@ -3983,7 +3983,7 @@ fn zphysicsAlignedAlloc(size: usize, alignment: usize) callconv(.C) ?*anyopaque const ptr = state.?.mem_allocator.rawAlloc( size, - std.math.log2_int(u29, @as(u29, @intCast(alignment))), + std.mem.Alignment.fromByteUnits(alignment), @returnAddress(), ); if (ptr == null) @panic("zphysics: out of memory"); @@ -4007,7 +4007,7 @@ fn zphysicsFree(maybe_ptr: ?*anyopaque) callconv(.C) void { state.?.mem_allocator.rawFree( mem, - std.math.log2_int(u29, @as(u29, @intCast(info.alignment))), + std.mem.Alignment.fromByteUnits(info.alignment), @returnAddress(), ); } From 4f2b8638f3a8fffb170bce0340a77d3473c06dd5 Mon Sep 17 00:00:00 2001 From: Chris Heyes <22148308+hazeycode@users.noreply.github.com> Date: Tue, 25 Mar 2025 20:46:58 +0000 Subject: [PATCH 2/2] Update .zigversion --- .zigversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zigversion b/.zigversion index 27af068..a803cc2 100644 --- a/.zigversion +++ b/.zigversion @@ -1 +1 @@ -0.14.0-dev.2577+271452d22 +0.14.0