X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fextrudedshape.h;h=bacea7c3e54e208f6ef246bfa4dd719aa2aeb8ac;hp=400c52b8122cdee3d45627b87822aa0bd4cea19f;hb=fb9e6b5ff48e10ea2217cf539e0461956abf02cf;hpb=63b6f5c937a2f0dcf93ef9fd1a586985c32631ce diff --git a/source/geometry/extrudedshape.h b/source/geometry/extrudedshape.h index 400c52b..bacea7c 100644 --- a/source/geometry/extrudedshape.h +++ b/source/geometry/extrudedshape.h @@ -41,7 +41,7 @@ template inline ExtrudedShape::ExtrudedShape(const Shape &b, T l): length(l) { - if(l<=0) + if(l<=T(0)) throw std::invalid_argument("ExtrudedShape::ExtrudedShape"); base = b.clone();