diff options
author | 2023-07-11 19:14:34 -0700 | |
---|---|---|
committer | 2023-07-11 19:14:34 -0700 | |
commit | cbb88672f217a90db1aa1eb29cd92d5d9035b22b (patch) | |
tree | 43a00501f3cde495967e116f0b660777051551f8 /src/deps/picohttp.zig | |
parent | 1f900cff453700b19bca2acadfe26da4468c1282 (diff) | |
parent | 34b0e7a2bbd8bf8097341cdb0075d0908283e834 (diff) | |
download | bun-jarred/esm-conditions.tar.gz bun-jarred/esm-conditions.tar.zst bun-jarred/esm-conditions.zip |
Merge branch 'main' into jarred/esm-conditionsjarred/esm-conditions
Diffstat (limited to 'src/deps/picohttp.zig')
-rw-r--r-- | src/deps/picohttp.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deps/picohttp.zig b/src/deps/picohttp.zig index d18cb7fa0..722475bb5 100644 --- a/src/deps/picohttp.zig +++ b/src/deps/picohttp.zig @@ -15,7 +15,7 @@ pub const Header = struct { value: []const u8, pub fn isMultiline(self: Header) bool { - return @ptrToInt(self.name.ptr) == 0; + return @intFromPtr(self.name.ptr) == 0; } pub fn format(self: Header, comptime _: []const u8, _: fmt.FormatOptions, writer: anytype) !void { @@ -101,7 +101,7 @@ pub const Request = struct { ); // Leave a sentinel value, for JavaScriptCore support. - if (rc > -1) @intToPtr([*]u8, @ptrToInt(path.ptr))[path.len] = 0; + if (rc > -1) @ptrFromInt([*]u8, @intFromPtr(path.ptr))[path.len] = 0; return switch (rc) { -1 => error.BadRequest, |