From 7fb68b59b581f9023f1b4bc530d0d7ce4393d614 Mon Sep 17 00:00:00 2001 From: kiirala Date: Wed, 15 Aug 2007 14:17:14 +0000 Subject: [PATCH] Fixed a problem compiling 2geom/poly.h on 64-bit platform --- src/2geom/poly.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.30.2