]> diplodocus.org Git - nmh/commitdiff
%(divide): Avoid SIGFPE on integer divide of INT_MIN by -1.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 24 Jan 2018 00:27:01 +0000 (00:27 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 Jan 2018 14:44:44 +0000 (14:44 +0000)
Dividing by zero isn't the only cause of SIGFPE.
    fmttest -raw -format '%(num -2147483648) %(divide -1)' foo
Also, add FIXME comment suggesting the user should be told of overflow
rather than silently using zero as the result.


No differences found