Skip to content

Commit e3b429c

Browse files
committed
Upgrade to Zig 0.14.0
1 parent 4b9982c commit e3b429c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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 = "zbullet",
2+
.name = .zbullet,
3+
.fingerprint = 0xdea5c1cd8f1709ee, // Changing this has security and trust implications.
34
.version = "0.4.0-dev",
45
.paths = .{
56
"build.zig",

src/zbullet.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export fn zbulletAlloc(size: usize, alignment: i32) callconv(.C) ?*anyopaque {
4040

4141
const ptr = mem_allocator.?.rawAlloc(
4242
size,
43-
std.math.log2_int(u29, @as(u29, @intCast(alignment))),
43+
std.mem.Alignment.fromByteUnits(@intCast(alignment)),
4444
@returnAddress(),
4545
);
4646
if (ptr == null) @panic("zbullet: out of memory");
@@ -64,7 +64,7 @@ export fn zbulletFree(maybe_ptr: ?*anyopaque) callconv(.C) void {
6464

6565
mem_allocator.?.rawFree(
6666
mem,
67-
std.math.log2_int(u29, @as(u29, @intCast(info.alignment))),
67+
std.mem.Alignment.fromByteUnits(@intCast(info.alignment)),
6868
@returnAddress(),
6969
);
7070
}

0 commit comments

Comments
 (0)