From eae28536d21f4ba7d1c94fb8cc343d09fe353596 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sun, 28 Dec 2025 22:23:44 +0100 Subject: [PATCH] fix: windows build --- src/Project.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Project.zig b/src/Project.zig index ed13309..0948544 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -999,7 +999,8 @@ fn file_uri_to_path(uri: []const u8, file_path_buf: []u8) error{InvalidTargetURI return convert_path(file_path); } -fn convert_path(file_path: []u8) []u8 { +fn convert_path(file_path_: []u8) []u8 { + var file_path = file_path_; if (builtin.os.tag == .windows) { if (file_path[0] == '/') file_path = file_path[1..]; for (file_path, 0..) |c, i| if (c == '/') {