diff options
author | 2023-07-18 01:20:20 -0700 | |
---|---|---|
committer | 2023-07-18 01:20:20 -0700 | |
commit | 661355546a4658ea927bfd70698577c1db301243 (patch) | |
tree | 2b8d33ea64ab6f23c5f1729d106076cbadd44c89 /src/linker.zig | |
parent | 71f1aa1802360d74d823b1a1544454b199b27898 (diff) | |
download | bun-661355546a4658ea927bfd70698577c1db301243.tar.gz bun-661355546a4658ea927bfd70698577c1db301243.tar.zst bun-661355546a4658ea927bfd70698577c1db301243.zip |
zig upgrade (#3667)
* upgrade
* more fixes
* Bump Zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/linker.zig')
-rw-r--r-- | src/linker.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linker.zig b/src/linker.zig index fa1c504d7..744c5eabc 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -234,7 +234,7 @@ pub const Linker = struct { switch (result.loader) { .jsx, .js, .ts, .tsx => { var record_i: u32 = 0; - const record_count = @truncate(u32, import_records.items.len); + const record_count = @as(u32, @truncate(import_records.items.len)); outer: while (record_i < record_count) : (record_i += 1) { var import_record = &import_records.items[record_i]; @@ -569,7 +569,7 @@ pub const Linker = struct { // But we need to at least tell the printer that this needs to happen. if (loader != .napi and resolved_import.shouldAssumeCommonJS(import_record.kind) and !is_bun) { import_record.do_commonjs_transform_in_printer = true; - import_record.module_id = @truncate(u32, bun.hash(path.pretty)); + import_record.module_id = @as(u32, @truncate(bun.hash(path.pretty))); } } else |err| { switch (err) { |