On 1/10/23 11:43 AM, Greg Wooledge wrote:
On Sat, Jan 07, 2023 at 01:42:20PM -0500, Greg Wooledge wrote:
Or should the code do the multiplications with unsigned
values, store them in unsigned variables, and then replace the subtraction
with some kind of conditional that checks which of the two is greater?

Here's a version that does just that:

Thanks, I pushed what I think is a simpler fix that should work fine.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to