]> granicus.if.org Git - postgis/commitdiff
Quiet warnings about using fabs on ints
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 13 May 2015 18:06:04 +0000 (18:06 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 13 May 2015 18:06:04 +0000 (18:06 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13494 b70326c6-7e19-0410-871a-916f4a2858ee

raster/loader/raster2pgsql.c

index 4bfb56c224a6cec872ff61cfab2dc978c0b0efb7..12bb9f412f9c45d2340b9cd09297b2413f355c34 100644 (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;