Permalink
Browse files

avoid compiler warning

  • Loading branch information...
1 parent 7f6fe7d commit 50898a6e1197c18d0b27f15b79b7d2832356c2c5 Dane Springmeyer committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapnik_map.cpp
View
@@ -540,7 +540,7 @@ Handle<Value> Map::abstractQueryPoint(const Arguments& args, bool geo_coords)
s << "no layers found in map";
}
return ThrowException(Exception::TypeError(String::New(s.str().c_str())));
- } else if (layer_idx >= layer_num) {
+ } else if (layer_idx >= static_cast<int>(layer_num)) {
std::ostringstream s;
s << "Zero-based layer index '" << layer_idx << "' not valid, ";
if (layer_num > 0)

0 comments on commit 50898a6

Please sign in to comment.