From 15d007b47043238ec34ea8609ad7949021ee68d1 Mon Sep 17 00:00:00 2001 From: Toni Harzendorf Date: Mon, 6 Oct 2025 20:20:29 +0200 Subject: [PATCH] fix readFileAlloc usage - path and Allocator arguments were swapped - .limited64 returns a "Limit" enum in 0.15.1 now, just do with @min directly what .limited64 actually does. --- src/manifest/util.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest/util.zig b/src/manifest/util.zig index 231a414..8d26dc6 100644 --- a/src/manifest/util.zig +++ b/src/manifest/util.zig @@ -222,7 +222,7 @@ pub fn readFile(allocator: std.mem.Allocator, dir: std.fs.Dir, path: []const u8) else => return err, } }; - const content = std.fs.cwd().readFileAlloc(path, allocator, .limited64(stat.size)); + const content = std.fs.cwd().readFileAlloc(allocator, path, @min(stat.size, std.math.maxInt(usize))); return content; }