From fa1ac1307f8aca14a1049476fcbf0d431bf4a87e Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 19 Dec 2012 19:17:42 -0800 Subject: [PATCH] use grid value_type instead of hardcoding int for feature id type --- src/grid/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grid/grid.cpp b/src/grid/grid.cpp index 883901656..f3815df37 100644 --- a/src/grid/grid.cpp +++ b/src/grid/grid.cpp @@ -80,7 +80,7 @@ void hit_grid::clear() template void hit_grid::add_feature(mapnik::feature_impl & feature) { - int feature_id = feature.id(); + value_type feature_id = feature.id(); // avoid adding duplicate features (e.g. in the case of both a line symbolizer and a polygon symbolizer) typename feature_key_type::const_iterator feature_pos = f_keys_.find(feature_id); if (feature_pos != f_keys_.end())