chore: update to latest zig nightly
This commit is contained in:
		| @@ -7,7 +7,7 @@ buf: []u8, | |||||||
| alloc: Allocator, | alloc: Allocator, | ||||||
|  |  | ||||||
| pub fn init(alloc: Allocator, path: []const u8) !Self { | pub fn init(alloc: Allocator, path: []const u8) !Self { | ||||||
|     const file = try std.fs.cwd().openFile(path, .{ .read = true }); |     const file = try std.fs.cwd().openFile(path, .{}); | ||||||
|     defer file.close(); |     defer file.close(); | ||||||
|  |  | ||||||
|     const len = try file.getEndPos(); |     const len = try file.getEndPos(); | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ buf: []u8, | |||||||
| alloc: Allocator, | alloc: Allocator, | ||||||
|  |  | ||||||
| pub fn init(alloc: Allocator, path: []const u8) !Self { | pub fn init(alloc: Allocator, path: []const u8) !Self { | ||||||
|     const file = try std.fs.cwd().openFile(path, .{ .read = true }); |     const file = try std.fs.cwd().openFile(path, .{}); | ||||||
|     defer file.close(); |     defer file.close(); | ||||||
|  |  | ||||||
|     const len = try file.getEndPos(); |     const len = try file.getEndPos(); | ||||||
|   | |||||||
| @@ -52,7 +52,7 @@ pub fn main() anyerror!void { | |||||||
|     var log_file: ?File = undefined; |     var log_file: ?File = undefined; | ||||||
|     if (enable_logging) { |     if (enable_logging) { | ||||||
|         const file_name: []const u8 = if (is_binary) "zba.bin" else "zba.log"; |         const file_name: []const u8 = if (is_binary) "zba.bin" else "zba.log"; | ||||||
|         const file = try std.fs.cwd().createFile(file_name, .{ .read = true }); |         const file = try std.fs.cwd().createFile(file_name, .{}); | ||||||
|         cpu.useLogger(&file, is_binary); |         cpu.useLogger(&file, is_binary); | ||||||
|  |  | ||||||
|         log_file = file; |         log_file = file; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user