eliminate compiler warnings

This commit is contained in:
Marcin Rudowski 2010-03-04 08:31:25 +00:00
parent 49afe197c3
commit 61c1e2e4ed

View file

@ -114,9 +114,9 @@ feature_ptr gdal_featureset::get_feature(mapnik::query const& q)
x_off = 0; x_off = 0;
if (y_off < 0) if (y_off < 0)
y_off = 0; y_off = 0;
if (end_x > raster_width) if (end_x > (int)raster_width)
end_x = raster_width; end_x = raster_width;
if (end_y > raster_height) if (end_y > (int)raster_height)
end_y = raster_height; end_y = raster_height;
int width = end_x - x_off; int width = end_x - x_off;
int height = end_y - y_off; int height = end_y - y_off;