Follow-up Comment #1, bug #66174 (group groff): [comment #0 original submission:] > N.B. What integer's value is saturated? (the name of the integer variable?)
1. The numeric expression parser doesn't know. That information is not passed down through the function calls that implement it. Not doing so is a common property of arithmetic evaluators. 2. Assuming the register 'a' has the value '1', and I have an expression like '\na+2147483647', is it the register 'a' that has saturated, or the expression as a whole? 3. There are instances where there is no register to saturate. $ printf 'A\\h"214710i"B\n' | ./build/test-groff -ww -a <beginning of page> troff:<standard input>:1: warning: integer value saturated troff:<standard input>:1: warning: integer subtraction saturated A B Where's the register? I'll look at the rest of this report after the formatter is feature-frozen for _groff_ 1.24. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66174> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature