aboutsummaryrefslogtreecommitdiff
path: root/src/resolver/resolve_path.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-17 11:14:20 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-17 11:14:20 -0700
commit9ca283bb43ebee74bf36af50807474b962ac44a1 (patch)
treea7040b8b07a38f48b1993d4515d876ed075c1833 /src/resolver/resolve_path.zig
parente1677bb77414710c1114c3b52b3fa954d9276c45 (diff)
downloadbun-9ca283bb43ebee74bf36af50807474b962ac44a1.tar.gz
bun-9ca283bb43ebee74bf36af50807474b962ac44a1.tar.zst
bun-9ca283bb43ebee74bf36af50807474b962ac44a1.zip
CSS scanner works
Former-commit-id: 4ca1e17778dc4a331da5a9a21f56e0e590c799ce
Diffstat (limited to 'src/resolver/resolve_path.zig')
-rw-r--r--src/resolver/resolve_path.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolver/resolve_path.zig b/src/resolver/resolve_path.zig
index 2bbd83c55..1bba7d12c 100644
--- a/src/resolver/resolve_path.zig
+++ b/src/resolver/resolve_path.zig
@@ -1,6 +1,6 @@
const tester = @import("../test/tester.zig");
-const FeatureFlags = @import("../global.zig").FeatureFlags;
+const FeatureFlags = @import("../feature_flags.zig");
const std = @import("std");
threadlocal var parser_join_input_buffer: [1024]u8 = undefined;
@@ -259,7 +259,7 @@ pub fn relativeToCommonPath(
var out_slice: []u8 = buf[0..0];
if (normalized_from.len > 0) {
- var i: usize = @boolToInt(normalized_from[0] == separator) + 1 + last_common_separator;
+ var i: usize = @intCast(usize, @boolToInt(normalized_from[0] == separator)) + 1 + last_common_separator;
while (i <= normalized_from.len) : (i += 1) {
if (i == normalized_from.len or (normalized_from[i] == separator and i + 1 < normalized_from.len)) {