diff options
| author | 2024-03-31 09:59:51 -0400 | |
|---|---|---|
| committer | 2024-03-31 09:59:51 -0400 | |
| commit | 200c617c865a5952f0bd12378802cc06ea3eb1c2 (patch) | |
| tree | 2af456d4c62a08330cf961e7237f083fc4566370 /codegen/numeric.zig | |
| parent | Split out Unicode tests to separate file (diff) | |
| download | zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.tar.gz zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.tar.xz zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.zip | |
Updated README
Diffstat (limited to 'codegen/numeric.zig')
| -rw-r--r-- | codegen/numeric.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/codegen/numeric.zig b/codegen/numeric.zig index ad8490c..038ac0a 100644 --- a/codegen/numeric.zig +++ b/codegen/numeric.zig | |||
| @@ -118,11 +118,10 @@ pub fn main() !void { | |||
| 118 | _ = args_iter.skip(); | 118 | _ = args_iter.skip(); |
| 119 | const output_path = args_iter.next() orelse @panic("No output file arg!"); | 119 | const output_path = args_iter.next() orelse @panic("No output file arg!"); |
| 120 | 120 | ||
| 121 | const compressor = std.compress.deflate.compressor; | 121 | const compressor = std.compress.flate.deflate.compressor; |
| 122 | var out_file = try std.fs.cwd().createFile(output_path, .{}); | 122 | var out_file = try std.fs.cwd().createFile(output_path, .{}); |
| 123 | defer out_file.close(); | 123 | defer out_file.close(); |
| 124 | var out_comp = try compressor(allocator, out_file.writer(), .{ .level = .best_compression }); | 124 | var out_comp = try compressor(.raw, out_file.writer(), .{ .level = .best }); |
| 125 | defer out_comp.deinit(); | ||
| 126 | const writer = out_comp.writer(); | 125 | const writer = out_comp.writer(); |
| 127 | 126 | ||
| 128 | const endian = builtin.cpu.arch.endian(); | 127 | const endian = builtin.cpu.arch.endian(); |