You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fesod.apache.org by "BigDataDZ (via GitHub)" <gi...@apache.org> on 2026/10/08 12:16:29 UTC
Re: [PR] fix: reject out-of-range integral cell values [fesod]
BigDataDZ commented on PR #1101:
URL: https://github.com/apache/fesod/pull/1101#issuecomment-6059648799
Reviewed the diff - the approach looks right: `checkRange` truncates toward zero first (so fractional values keep narrowing the way they did before `intValueExact`-style strictness would allow) and only the truncated integral part is range-checked, which matches the semantics I had implemented in the now-closed #1188.
One suggestion: add a fraction-truncation regression test (e.g. `parseInteger("123.9") == 123` and the same for a NUMBER cell on `IntegerNumberConverter`). Nothing in the current tests pins that behavior, and it protects the narrowing semantics from being "exactified" by a future refactor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org