Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: "0.15.1"
version: "0.15.2"

- name: Run tests
run: make test_zig_stable
Expand Down
4 changes: 2 additions & 2 deletions build/patch.zig
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ pub fn main() !void {
const chunk = chunk_details.lines[line_number - chunk_details.src];
switch (chunk.action) {
.remove => {
const line = try reader.interface.takeDelimiterExclusive('\n');
const line = (try reader.interface.takeDelimiter('\n')).?;
if (!std.mem.eql(u8, chunk.buf, line)) @panic("Failed to apply patch");
},
.keep => {
const line = try reader.interface.takeDelimiterExclusive('\n');
const line = (try reader.interface.takeDelimiter('\n')).?;
if (!std.mem.eql(u8, chunk.buf, line)) @panic("Failed to apply patch");
try writer.interface.writeAll(line);
try writer.interface.writeByte('\n');
Expand Down
Loading