Fix compiler error on windows after update.

This commit is contained in:
IntegratedQuantum 2024-05-14 09:45:30 +02:00
parent 628404393c
commit 2295ddf310

View File

@ -31,7 +31,7 @@ pub const Compression = struct {
while(try walker.next()) |entry| {
if(entry.kind == .file) {
var relPath = entry.path;
var relPath: []const u8 = entry.path;
if(builtin.os.tag == .windows) { // I hate you
const copy = main.stackAllocator.dupe(u8, relPath);
std.mem.replaceScalar(u8, copy, '\\', '/');