Repository navigation
Commit 7f4bc58
fix(sys): type maxsize as nativeint instead of int
Python's sys.maxsize is 2^63−1 on 64-bit systems, which overflows Fable's
Int32 (the target type for F# int). nativeint maps to Python's native int,
preserving the full value. Re-adds the maxsize positivity test.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent aef8090 commit 7f4bc58
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments