summaryrefslogtreecommitdiffstats
path: root/src/display/curve.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-07-05 19:02:33 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-07-05 19:02:33 +0000
commitb020354dc251990e7113eb402be5ff9c0e1faa7c (patch)
treec3d634833be2c77333e6cc6edf10b3f63dab6497 /src/display/curve.cpp
parenticons: add missing icon 'dialog-templates' used for 'File > New from Template' (diff)
downloadinkscape-b020354dc251990e7113eb402be5ff9c0e1faa7c.tar.gz
inkscape-b020354dc251990e7113eb402be5ff9c0e1faa7c.zip
Hopefully fix build failure on i386
(bzr r14232)
Diffstat (limited to 'src/display/curve.cpp')
-rw-r--r--src/display/curve.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 2f422c151..386c63166 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -629,7 +629,7 @@ SPCurve::nodes_in_path() const
for(Geom::PathVector::const_iterator it = _pathv.begin(); it != _pathv.end(); ++it) {
// if the path does not have any segments, it is a naked moveto,
// and therefore any path has at least one valid node
- size_t psize = std::max(1ul, it->size_closed());
+ size_t psize = std::max<size_t>(1, it->size_closed());
nr += psize;
}