Skip to content

Commit 3cb2cc5

Browse files
authored
Merge pull request #108 from herbie-fp/fix-104
Allow 0^-0 not to be a must-error
2 parents 7a7bc59 + 3499a4a commit 3cb2cc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ops/pow.rkt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@
103103
(ival (endpoint lo real-lo!)
104104
(endpoint hi real-hi!)
105105
(or xerr? yerr? (and (bfzero? (endpoint-val xlo)) (not (= y-class 1))))
106-
(or xerr yerr (and (bfzero? (endpoint-val xhi)) (= y-class -1)))))
106+
(or xerr
107+
yerr
108+
(and (bfzero? (endpoint-val xhi)) (= y-class -1) (not (bfzero? (endpoint-val yhi)))))))
107109

108110
(match* (x-class y-class)
109111
[(1 1) (mk-pow xlo ylo xhi yhi)]

0 commit comments

Comments
 (0)