diff options
author | 2021-09-08 16:57:10 -0700 | |
---|---|---|
committer | 2021-09-08 16:57:10 -0700 | |
commit | c30ec608b1484628cc28b4811b9d62e1c142b281 (patch) | |
tree | 83fb59c6edb8e81d452e0f000c17ce3cd98e0aae /src/options.zig | |
parent | d18e73aa5798b70f6fd635e3e325e470d9d06e7b (diff) | |
download | bun-c30ec608b1484628cc28b4811b9d62e1c142b281.tar.gz bun-c30ec608b1484628cc28b4811b9d62e1c142b281.tar.zst bun-c30ec608b1484628cc28b4811b9d62e1c142b281.zip |
upgrade
Diffstat (limited to 'src/options.zig')
-rw-r--r-- | src/options.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.zig b/src/options.zig index 0251c8416..30f8dc018 100644 --- a/src/options.zig +++ b/src/options.zig @@ -567,7 +567,7 @@ pub const JSX = struct { // ...unless new is "React.createElement" and original is ["React", "createElement"] // saves an allocation for the majority case pub fn memberListToComponentsIfDifferent(allocator: *std.mem.Allocator, original: []const string, new: string) ![]const string { - var splitter = std.mem.split(new, "."); + var splitter = std.mem.split(u8, new, "."); var needs_alloc = false; var count: usize = 0; @@ -591,7 +591,7 @@ pub const JSX = struct { var out = try allocator.alloc(string, count + 1); - splitter = std.mem.split(new, "."); + splitter = std.mem.split(u8, new, "."); var i: usize = 0; while (splitter.next()) |str| { out[i] = str; @@ -1347,7 +1347,7 @@ pub const OutputFile = struct { if (comptime std.Target.current.isDarwin()) { const rc = os.system.fcopyfile(fd_in, fd_out, null, os.system.COPYFILE_DATA); - if (os.errno(rc) == 0) { + if (rc == 0) { return; } } |