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; } };