Quiet warnings about using fabs on ints

git-svn-id: http://svn.osgeo.org/postgis/trunk@13494 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Paul Ramsey 2015-05-13 18:06:04 +00:00
parent 17c3f1f085
commit 4186526ccd

View file

@ -634,7 +634,7 @@ diff_rastinfo(RASTERINFO *x, RASTERINFO *ref) {
if (!msg[3]) {
for (i = 0; i < ref->nband_count; i++) {
if (!x->hasnodata[i] && !ref->hasnodata[i]) continue;
if (FLT_NEQ(x->hasnodata[i], ref->hasnodata[i])) {
if (x->hasnodata[i] != ref->hasnodata[i]) {
rtwarn(_("Different NODATA values found for band %d in the set of rasters being converted to PostGIS raster"), ref->nband[i]);
msg[3]++;
}
@ -678,7 +678,7 @@ diff_rastinfo(RASTERINFO *x, RASTERINFO *ref) {
/* tile size */
if (!msg[5]) {
for (i = 0; i < 2; i++) {
if (FLT_NEQ(x->tile_size[i], ref->tile_size[i])) {
if (x->tile_size[i] != ref->tile_size[i]) {
rtwarn(_("Different tile sizes found in the set of rasters being converted to PostGIS raster"));
msg[5]++;
break;