From 4186526ccdb8a72b890d31582de1fd450c1072c7 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 13 May 2015 18:06:04 +0000 Subject: [PATCH] Quiet warnings about using fabs on ints git-svn-id: http://svn.osgeo.org/postgis/trunk@13494 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/loader/raster2pgsql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raster/loader/raster2pgsql.c b/raster/loader/raster2pgsql.c index 4bfb56c22..12bb9f412 100644 --- a/raster/loader/raster2pgsql.c +++ b/raster/loader/raster2pgsql.c @@ -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; -- 2.40.0