fix test failure on 32 bit windows
This commit is contained in:
parent
6bf1547148
commit
403a46abcc
@ -273,7 +273,9 @@ pub const File = struct {
|
|||||||
else => os.unexpectedErrorWindows(err),
|
else => os.unexpectedErrorWindows(err),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return @bitCast(usize, file_size);
|
if (file_size < 0)
|
||||||
|
return error.Overflow;
|
||||||
|
return math.cast(usize, u64(file_size));
|
||||||
} else {
|
} else {
|
||||||
unreachable;
|
unreachable;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user