Commit b7346e7
fix(reader): restore long cast in Pco preDeltaN clamp (S2184)
Removing the (long) cast in 04cab70 turned `nRemaining - deltaOrder`
into an int subtraction widened only afterward for Math.clamp(long,..),
risking int overflow — SonarCloud flagged it as bug S2184. The cast was
load-bearing, not redundant as S1905 claimed; restore it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a426c1d commit b7346e7
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
| 293 | + | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
0 commit comments