summaryrefslogtreecommitdiffstats
path: root/src/2geom/sbasis-roots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/sbasis-roots.cpp')
-rw-r--r--src/2geom/sbasis-roots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/sbasis-roots.cpp b/src/2geom/sbasis-roots.cpp
index 5249053fa..37e07cbe8 100644
--- a/src/2geom/sbasis-roots.cpp
+++ b/src/2geom/sbasis-roots.cpp
@@ -352,7 +352,7 @@ std::vector<double> roots1(SBasis const & s) {
double d = s[0][0] - s[0][1];
if(d != 0) {
double r = s[0][0] / d;
- if(0 <= r and r <= 1)
+ if(0 <= r && r <= 1)
res.push_back(r);
}
return res;