File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ pub fn main() !void {
1717 const patch_file = patch_file : {
1818 const patch_file = try std .fs .cwd ().openFile (patch_file_path , .{ .mode = .read_only });
1919 defer patch_file .close ();
20- break :patch_file try patch_file .readToEndAlloc (allocator , std .math .maxInt (usize ));
20+ var buf : [4096 ]u8 = undefined ;
21+ var reader = patch_file .reader (& buf );
22+ break :patch_file try reader .interface .allocRemaining (allocator , .unlimited );
2123 };
2224 const chunk_details = Chunk .init (allocator , patch_file , 0 ) orelse @panic ("No chunk data found" );
2325
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ test_zig_nightly:
1313
1414 zig build -Dlang=luajit
1515
16- # A subset of tests that are expected to work also on zig-0.14
16+ # A subset of tests that are expected to work also on stable builds of zig
1717test_zig_stable :
18+ zig build test --summary failures -Dlang=lua51
1819 zig build test --summary failures -Dlang=lua52
1920 zig build test --summary failures -Dlang=lua53
2021 zig build test --summary failures -Dlang=lua54
You can’t perform that action at this time.
0 commit comments