| ... | ... | @@ -7,10 +7,6 @@ const u = @import("index.zig"); |
| 7 | 7 | // |
| 8 | 8 | // |
| 9 | 9 | |
| 10 | | const b = 1; |
| 11 | | const kb = b * 1024; |
| 12 | | const mb = kb * 1024; |
| 13 | | |
| 14 | 10 | pub const Module = struct { |
| 15 | 11 | is_sys_lib: bool, |
| 16 | 12 | name: []const u8, |
| ... | ... | @@ -66,7 +62,7 @@ pub const Module = struct { |
| 66 | 62 | const abs_path = try u.concat(&[_][]const u8{cdpath, "/", self.clean_path, "/", item}); |
| 67 | 63 | const file = try std.fs.openFileAbsolute(abs_path, .{}); |
| 68 | 64 | defer file.close(); |
| 69 | | const input = try file.reader().readAllAlloc(gpa, mb); |
| 65 | const input = try file.reader().readAllAlloc(gpa, u.mb); |
| 70 | 66 | h.update(input); |
| 71 | 67 | } |
| 72 | 68 | var out: [32]u8 = undefined; |