diff --git a/src/ninja/gdal_util.cpp b/src/ninja/gdal_util.cpp index 458652ea..8e10403c 100644 --- a/src/ninja/gdal_util.cpp +++ b/src/ninja/gdal_util.cpp @@ -1000,7 +1000,7 @@ bool GDALWarpToUtm (const char* filename, GDALDatasetH& hSrcDS, GDALDatasetH& hD //fill no data from warping int nNoDataCount = 0; - if(GDALHasNoData(hDstDS, 1)) + if(GDALHasNoData((GDALDataset*)hDstDS, 1)) { nNoDataCount = GDALFillBandNoData(hDstDS, 1, 100); }