Skip to content

Commit

Permalink
fix window build
Browse files Browse the repository at this point in the history
  • Loading branch information
paperdave committed Mar 27, 2024
1 parent be9db9d commit a02a374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bun.js/javascript.zig
Expand Up @@ -769,7 +769,7 @@ pub const VirtualMachine = struct {

if (map.map.fetchSwapRemove("BUN_INTERNAL_IPC_FD")) |kv| {
if (Environment.isWindows) {
this.initIPCInstance(kv.value.value);
this.initIPCInstance(kv.value);
} else if (std.fmt.parseInt(i32, kv.value, 10) catch null) |fd| {
this.initIPCInstance(bun.toFD(fd));
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/env_loader.zig
Expand Up @@ -1153,7 +1153,7 @@ pub const Map = struct {
if (i + 7 >= result.len) return error.TooManyEnvironmentVariables;
result[i] = '=';
i += 1;
i += bun.strings.convertUTF8toUTF16InBuffer(result[i..], pair.value_ptr.*.value).len;
i += bun.strings.convertUTF8toUTF16InBuffer(result[i..], pair.value_ptr.*).len;
if (i + 5 >= result.len) return error.TooManyEnvironmentVariables;
result[i] = 0;
i += 1;
Expand Down

0 comments on commit a02a374

Please sign in to comment.