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; }