From 511399f3c1687aaa6cd782e51732af049322259f Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 6 Dec 2012 09:50:36 +0000 Subject: [PATCH] + correct types --- include/mapnik/attribute.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mapnik/attribute.hpp b/include/mapnik/attribute.hpp index 2ea821033..ccccf8b9b 100644 --- a/include/mapnik/attribute.hpp +++ b/include/mapnik/attribute.hpp @@ -52,7 +52,7 @@ struct geometry_type_attribute template V value(F const& f) const { - int type = 0; + mapnik::value_integer type = 0; geometry_container::const_iterator itr = f.paths().begin(); geometry_container::const_iterator end = f.paths().end(); for ( ; itr != end; ++itr) @@ -63,7 +63,7 @@ struct geometry_type_attribute } type = itr->type(); } - return static_cast(type); + return type; } };