summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 981b809)
raw | patch | inline | side by side (parent: 981b809)
author | kiirala <kiirala@users.sourceforge.net> | |
Wed, 15 Aug 2007 14:17:14 +0000 (14:17 +0000) | ||
committer | kiirala <kiirala@users.sourceforge.net> | |
Wed, 15 Aug 2007 14:17:14 +0000 (14:17 +0000) |
src/2geom/poly.h | patch | blob | history |
diff --git a/src/2geom/poly.h b/src/2geom/poly.h
index 4fc68098f450943557be28aaa9dfc30c24284ea8..f653e80a644604e229e2eaa311e15115975dae23 100644 (file)
--- a/src/2geom/poly.h
+++ b/src/2geom/poly.h
// 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) {