Changeset 12149
- Timestamp:
- 09/13/07 22:50:42 (1 year ago)
- Files:
-
- trunk/gdal/frmts/pcraster/pcrasterdataset.cpp (modified) (1 diff)
- trunk/gdal/frmts/pcraster/pcrasterutil.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/frmts/pcraster/pcrasterdataset.cpp
r12145 r12149 293 293 d_cellSize = static_cast<double>(RgetCellSize(d_map)); 294 294 d_cellRepresentation = RgetUseCellRepr(d_map); 295 assert(d_cellRepresentation != CR_UNDEFINED);295 CPLAssert(d_cellRepresentation != CR_UNDEFINED); 296 296 d_valueScale = RgetValueScale(d_map); 297 assert(d_valueScale != VS_UNDEFINED);297 CPLAssert(d_valueScale != VS_UNDEFINED); 298 298 d_missingValue = ::missingValue(d_cellRepresentation); 299 299 trunk/gdal/frmts/pcraster/pcrasterutil.cpp
r12145 r12149 215 215 } 216 216 default: { 217 assert(false);217 CPLAssert(false); 218 218 break; 219 219 } … … 307 307 case CR_REAL4: { 308 308 // using <limits> breaks on gcc 2.95 309 // assert(std::numeric_limits<REAL4>::is_iec559);309 // CPLAssert(std::numeric_limits<REAL4>::is_iec559); 310 310 // missingValue = -std::numeric_limits<REAL4>::max(); 311 311 missingValue = -FLT_MAX; … … 313 313 } 314 314 default: { 315 assert(false);315 CPLAssert(false); 316 316 break; 317 317 } … … 363 363 } 364 364 default: { 365 assert(false);365 CPLAssert(false); 366 366 break; 367 367 } … … 400 400 } 401 401 default: { 402 assert(false);402 CPLAssert(false); 403 403 break; 404 404 }
