Commit 4186526c authored by Paul Ramsey's avatar Paul Ramsey

Quiet warnings about using fabs on ints


git-svn-id: http://svn.osgeo.org/postgis/[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent 17c3f1f0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment