mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
std.cache_hash: fix bug parsing inode
This resulted in false negatives cache misses.
This commit is contained in:
parent
18ac998767
commit
a916f63940
@ -193,7 +193,7 @@ pub const CacheHash = struct {
|
||||
const digest_str = iter.next() orelse return error.InvalidFormat;
|
||||
const file_path = iter.rest();
|
||||
|
||||
cache_hash_file.stat.inode = fmt.parseInt(fs.File.INode, mtime_nsec_str, 10) catch return error.InvalidFormat;
|
||||
cache_hash_file.stat.inode = fmt.parseInt(fs.File.INode, inode, 10) catch return error.InvalidFormat;
|
||||
cache_hash_file.stat.mtime = fmt.parseInt(i64, mtime_nsec_str, 10) catch return error.InvalidFormat;
|
||||
base64_decoder.decode(&cache_hash_file.bin_digest, digest_str) catch return error.InvalidFormat;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user