We should compile even if REAL is not 5
authorDavid Gow <david@ingeniumdigital.com>
Tue, 15 Jul 2014 13:10:05 +0000 (21:10 +0800)
committerDavid Gow <david@ingeniumdigital.com>
Tue, 15 Jul 2014 13:10:05 +0000 (21:10 +0800)
src/real.cpp

index ce2f976..96d8054 100644 (file)
@@ -12,9 +12,11 @@ namespace IPDF
                "Rational<Arbint>"
        };
        
+#if REAL == REAL_RATIONAL_ARBINT
        template <> Gmpint Tabs(const Gmpint & a)
        {
                return a.Abs();
        }
+#endif
 
 }

UCC git Repository :: git.ucc.asn.au