aboutsummaryrefslogtreecommitdiff
path: root/strip-store-paths
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2023-12-06 09:40:41 +1100
committerJustin Bedo <cu@cua0.org>2023-12-06 09:40:41 +1100
commitceeef8db39f0947f4f3bfbd2bd5e763582914b82 (patch)
treed49c24c11934a4721e50b194302e4319b3404b4c /strip-store-paths
parent75c9aed716dcb6e501cf53428fe3ebd43d0567e9 (diff)
strip-store-paths: update for latest zig
Diffstat (limited to 'strip-store-paths')
-rw-r--r--strip-store-paths/strip-store-paths.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/strip-store-paths/strip-store-paths.zig b/strip-store-paths/strip-store-paths.zig
index 69ed2db..90c45a7 100644
--- a/strip-store-paths/strip-store-paths.zig
+++ b/strip-store-paths/strip-store-paths.zig
@@ -10,8 +10,8 @@ pub const File = struct {
if (stats.size == 0) {
return error.ZeroFile;
}
- var ptr = try std.os.mmap(null, @intCast(usize, stats.size), std.os.PROT.READ | std.os.PROT.WRITE, std.os.MAP.SHARED, fd, 0);
- return File{ .ptr = ptr, .len = @intCast(u64, stats.size), .allocator = allocator };
+ var ptr = try std.os.mmap(null, @intCast(stats.size), std.os.PROT.READ | std.os.PROT.WRITE, std.os.MAP.SHARED, fd, 0);
+ return File{ .ptr = ptr, .len = @intCast(stats.size), .allocator = allocator };
}
pub fn deinit(self: *File) void {