aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/module_loader.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-07-18 01:20:20 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-18 01:20:20 -0700
commit661355546a4658ea927bfd70698577c1db301243 (patch)
tree2b8d33ea64ab6f23c5f1729d106076cbadd44c89 /src/bun.js/module_loader.zig
parent71f1aa1802360d74d823b1a1544454b199b27898 (diff)
downloadbun-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/bun.js/module_loader.zig')
-rw-r--r--src/bun.js/module_loader.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig
index 1bf8dcb12..07e25282f 100644
--- a/src/bun.js/module_loader.zig
+++ b/src/bun.js/module_loader.zig
@@ -826,7 +826,7 @@ pub const ModuleLoader = struct {
else
null;
resolved_source.commonjs_exports_len = if (commonjs_exports.len > 0)
- @truncate(u32, commonjs_exports.len)
+ @as(u32, @truncate(commonjs_exports.len))
else if (parse_result.ast.exports_kind == .cjs)
std.math.maxInt(u32)
else
@@ -845,7 +845,7 @@ pub const ModuleLoader = struct {
else
null,
.commonjs_exports_len = if (commonjs_exports.len > 0)
- @truncate(u32, commonjs_exports.len)
+ @as(u32, @truncate(commonjs_exports.len))
else if (parse_result.ast.exports_kind == .cjs)
std.math.maxInt(u32)
else
@@ -1228,7 +1228,7 @@ pub const ModuleLoader = struct {
else
null;
resolved_source.commonjs_exports_len = if (commonjs_exports.len > 0)
- @truncate(u32, commonjs_exports.len)
+ @as(u32, @truncate(commonjs_exports.len))
else if (parse_result.ast.exports_kind == .cjs)
std.math.maxInt(u32)
else
@@ -1265,7 +1265,7 @@ pub const ModuleLoader = struct {
else
null,
.commonjs_exports_len = if (commonjs_exports.len > 0)
- @truncate(u32, commonjs_exports.len)
+ @as(u32, @truncate(commonjs_exports.len))
else if (parse_result.ast.exports_kind == .cjs)
std.math.maxInt(u32)
else
@@ -1330,7 +1330,7 @@ pub const ModuleLoader = struct {
var encoded = JSC.EncodedJSValue{
.asPtr = globalThis,
};
- const globalValue = @enumFromInt(JSC.JSValue, encoded.asInt64);
+ const globalValue = @as(JSC.JSValue, @enumFromInt(encoded.asInt64));
globalValue.put(
globalThis,
JSC.ZigString.static("wasmSourceBytes"),