Commit bf51d25
Fix long overflow in round' function
Cast to double before multiplying by -1 or sgn to prevent overflow
when Math/round returns values near Long/MIN_VALUE.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 92bf59b commit bf51d25
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1237 | 1237 | | |
1238 | 1238 | | |
1239 | 1239 | | |
1240 | | - | |
| 1240 | + | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
| 1243 | + | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | | - | |
| 1246 | + | |
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
| |||
0 commit comments