1 Commits
Author SHA1 Message Date
Juan Manuel Méndez Rey 26cd875616 fix: build the out-of-range FileMode test cases at run time (#5512)
Test_safeFileModeConvert declared two cases as int(math.MaxInt32) + 1 and
int(math.MinInt32) - 1. Those are constants that do not fit in an int where int
is 32 bits wide, so the package did not compile on 386.

On such a platform no int value lies outside the int32 range, so the two cases
cannot be built there. They now come from int64 variables, appended only where
int is wider than int32, which keeps both cases on 64-bit.

Signed-off-by: Juan Manuel Méndez Rey <juan.mendezr@proton.me>
2026-11-13 15:28:51 -05:00