diff options
Diffstat (limited to 'src/bun.zig')
-rw-r--r-- | src/bun.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.zig b/src/bun.zig index 438129754..9fe21a05a 100644 --- a/src/bun.zig +++ b/src/bun.zig @@ -236,7 +236,7 @@ pub const MutableString = @import("string_mutable.zig").MutableString; pub const RefCount = @import("./ref_count.zig").RefCount; pub inline fn constStrToU8(s: []const u8) []u8 { - return @intToPtr([*]u8, @ptrToInt(s.ptr))[0..s.len]; + return @constCast(s); } pub const MAX_PATH_BYTES: usize = if (Environment.isWasm) 1024 else std.fs.MAX_PATH_BYTES; |