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

6
flake.lock generated
View File

@ -109,11 +109,11 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1660697540,
"narHash": "sha256-xo/0ot44oXRbhBiHfAxxqKiluW2B0fBKtwtctkr/Up4=",
"lastModified": 1660870378,
"narHash": "sha256-iXCyt4soxWxcEUvEQHJh1XBbvEiskVaR5UFLfbWbGrw=",
"owner": "roarkanize",
"repo": "zig-overlay",
"rev": "92883db3ddf748074643ece54b020337d020f7d2",
"rev": "ad6afbdece7c817fbf43903766b9e2a7a6e01c68",
"type": "github"
},
"original": {

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);
}
}