mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
fix test failure on 32 bit windows
This commit is contained in:
1 parent
6bf1547148
commit
403a46abcc
1 file changed
+3
-1
+3
-1
@@ -273,7 +273,9 @@ pub const File = struct {
|
||||
else => os.unexpectedErrorWindows(err),
|
||||
};
|
||||
}
|
||||
return @bitCast(usize, file_size);
|
||||
if (file_size < 0)
|
||||
return error.Overflow;
|
||||
return math.cast(usize, u64(file_size));
|
||||
} else {
|
||||
unreachable;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user