update Zig, fixed new invalid octal error

This commit is contained in:
Mitchell Hashimoto
2022-08-19 08:58:27 -07:00
parent 1aecfc1061
commit d16c672771
2 changed files with 4 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ pub fn expandPath(alloc: Allocator, cmd: []const u8) !?[]u8 {
};
defer f.close();
const stat = try f.stat();
if (stat.kind != .Directory and stat.mode & 0111 != 0) {
if (stat.kind != .Directory and stat.mode & 0o0111 != 0) {
return try alloc.dupe(u8, full_path);
}
}