]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns_zeta.cpp
* Supplement some (now deprecated) macros by inlined template functions:
[ginac.git] / ginac / inifcns_zeta.cpp
index 14015b79e9c8a578da3ec08e6320e197f720515b..9cd0961af432694e0aed9a1c40ab26a50ead2918 100644 (file)
@@ -42,13 +42,13 @@ static ex zeta1_evalf(const ex & x)
                TYPECHECK(x,numeric)
        END_TYPECHECK(zeta(x))
                
-       return zeta(ex_to_numeric(x));
+       return zeta(ex_to<numeric>(x));
 }
 
 static ex zeta1_eval(const ex & x)
 {
        if (x.info(info_flags::numeric)) {
-               numeric y = ex_to_numeric(x);
+               numeric y = ex_to<numeric>(x);
                // trap integer arguments:
                if (y.is_integer()) {
                        if (y.is_zero())