avoid signed/unsigned warning with llvm-g++

This commit is contained in:
Dane Springmeyer 2013-03-19 14:01:48 -07:00
parent faa78864b6
commit f2ee8cae16

View file

@ -162,7 +162,7 @@ void ogr_datasource::init(mapnik::parameters const& params)
} }
else if (layer_by_index) else if (layer_by_index)
{ {
const unsigned num_layers = dataset_->GetLayerCount(); int num_layers = dataset_->GetLayerCount();
if (*layer_by_index >= num_layers) if (*layer_by_index >= num_layers)
{ {
std::ostringstream s("OGR Plugin: only "); std::ostringstream s("OGR Plugin: only ");