Commit ab72b08d authored by Martin Reinecke's avatar Martin Reinecke

work around (unhustified) compiler warning)

parent 3578717d
...@@ -353,6 +353,7 @@ template <typename T> T sinpi(T a) ...@@ -353,6 +353,7 @@ template <typename T> T sinpi(T a)
case 3: case -1: case 3: case -1:
return T(-1.) - cosm1pi0(t); return T(-1.) - cosm1pi0(t);
} }
throw runtime_error("cannot happen");
} }
template <typename T> T cospi(T a) template <typename T> T cospi(T a)
...@@ -373,6 +374,7 @@ template <typename T> T cospi(T a) ...@@ -373,6 +374,7 @@ template <typename T> T cospi(T a)
case 3: case -1: case 3: case -1:
return sinpi0(t); return sinpi0(t);
} }
throw runtime_error("cannot happen");
} }
inline long double cospi(long double a) inline long double cospi(long double a)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment