Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build with GCC 4.7

  • Loading branch information...
commit 08084bf029978b7966eba00b042645f22223b56e 1 parent d095e4f
@mamash mamash authored
View
1  geography/gdal-lib/distinfo
@@ -4,3 +4,4 @@ SHA1 (gdal-1.9.1.tar.gz) = c1eae556398ff7b9332afe9d3022dcd931130808
RMD160 (gdal-1.9.1.tar.gz) = c4d77975b753fae75c634662e5e572fc2308456e
Size (gdal-1.9.1.tar.gz) = 9487505 bytes
SHA1 (patch-frmts_netcdf_netcdfdataset.cpp) = e7d67936e13177284aa07ac12e534477a1cc26d9
+SHA1 (patch-frmts_netcdf_netcdfdataset.cpp) = c77c025a69a0eb39ac3bfd700b56f3e7620fe886
View
13 geography/gdal-lib/patches/patch-frmts_netcdf_netcdfdataset.cpp
@@ -1,3 +1,16 @@
+$NetBSD$
+
+--- frmts/netcdf/netcdfdataset.cpp.orig 2012-01-04 07:03:37.000000000 +0000
++++ frmts/netcdf/netcdfdataset.cpp
+@@ -962,7 +962,7 @@ void netCDFRasterBand::CheckValidData (
+ /* check for nodata and nan */
+ if ( CPLIsEqual( (double) ((T *)pImage)[i], dfNoDataValue ) )
+ continue;
+- if( bCheckIsNan && CPLIsNan( ( (T *) pImage)[i] ) ) {
++ if( bCheckIsNan && CPLIsNan( (double) ( (T *) pImage)[i] ) ) {
+ ( (T *)pImage )[i] = (T)dfNoDataValue;
+ continue;
+ }
$NetBSD: patch-frmts_netcdf_netcdfdataset.cpp,v 1.1 2012/05/04 13:27:23 hans Exp $
--- frmts/netcdf/netcdfdataset.cpp.orig 2012-01-04 08:03:37.000000000 +0100
Please sign in to comment.
Something went wrong with that request. Please try again.