]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/extrudedshape.h
Always explicitly construct values of type T
[libs/math.git] / source / geometry / extrudedshape.h
index 400c52b8122cdee3d45627b87822aa0bd4cea19f..bacea7c3e54e208f6ef246bfa4dd719aa2aeb8ac 100644 (file)
@@ -41,7 +41,7 @@ template<typename T, unsigned D>
 inline ExtrudedShape<T, D>::ExtrudedShape(const Shape<T, D-1> &b, T l):
        length(l)
 {
-       if(l<=0)
+       if(l<=T(0))
                throw std::invalid_argument("ExtrudedShape::ExtrudedShape");
 
        base = b.clone();