summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/2geom/poly.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/2geom/poly.h b/src/2geom/poly.h
index 4fc68098f..f653e80a6 100644
--- a/src/2geom/poly.h
+++ b/src/2geom/poly.h
@@ -95,7 +95,10 @@ public:
// equivalent to multiply by x^terms, discard negative terms
Poly shifted(unsigned terms) const {
Poly result;
- const unsigned out_size = std::max(unsigned(0), size()+terms);
+ // This was a no-op and breaks the build on x86_64, as it's trying
+ // to take maximum of 32-bit and 64-bit integers
+ //const unsigned out_size = std::max(unsigned(0), size()+terms);
+ const size_type out_size = size() + terms;
result.reserve(out_size);
if(terms < 0) {