From d1902bddd6273cd16579cec92bf2cf8f97ef8850 Mon Sep 17 00:00:00 2001 From: David Allemang Date: Wed, 8 Oct 2025 19:54:14 -0400 Subject: [PATCH] readFileAlloc compatibility --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 4ab3ce3..7f4b39d 100644 --- a/src/main.zig +++ b/src/main.zig @@ -102,12 +102,12 @@ pub fn main() !void { }; const cwd = std.fs.cwd(); - const xml_src = cwd.readFileAlloc(allocator, xml_path, std.math.maxInt(usize)) catch |err| { + const xml_src = cwd.readFileAlloc(xml_path, allocator, .unlimited) catch |err| { std.process.fatal("failed to open input file '{s}' ({s})", .{ xml_path, @errorName(err) }); }; const maybe_video_xml_src = if (maybe_video_xml_path) |video_xml_path| - cwd.readFileAlloc(allocator, video_xml_path, std.math.maxInt(usize)) catch |err| { + cwd.readFileAlloc(video_xml_path, allocator, .unlimited) catch |err| { std.process.fatal("failed to open input file '{s}' ({s})", .{ video_xml_path, @errorName(err) }); } else