2dc83000f6
- Switch to SF mirror - Add USE_DOS2UNIX PR: ports/171859 Approved by: Iouri Ivliev <ii@any.com.ru> (maintainer)
18 lines
771 B
C++
18 lines
771 B
C++
--- vigra/include/vigra/rational.hxx.orig 2008-02-14 23:14:15.000000000 +0000
|
|
+++ vigra/include/vigra/rational.hxx 2012-09-24 12:02:46.539117586 +0000
|
|
@@ -1015,6 +1015,7 @@
|
|
// Handle the easy cases. Take advantage of the fact
|
|
// that the denominator is never negative.
|
|
if(l.denominator() == zero)
|
|
+ {
|
|
if(r.denominator() == zero)
|
|
// -inf < inf, !(-inf < -inf), !(inf < -inf), !(inf < inf)
|
|
return l.numerator() < r.numerator();
|
|
@@ -1022,6 +1023,7 @@
|
|
// -inf < -1, -inf < 0, -inf < 1
|
|
// !(inf < -1), !(inf < 0), !(inf < 1)
|
|
return l.numerator() < zero;
|
|
+ }
|
|
if(r.denominator() == zero)
|
|
// -1 < inf, 0 < inf, 1 < inf
|
|
// !(-1 < -inf), !(0 < -inf), !(1 < -inf)
|