From 79e670f08693ac6cc9fab0c5254804ff172e864f Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 10 May 2024 12:06:36 -0600 Subject: [PATCH] Use correct types in assert Signed-off-by: Ryan --- geospatial/src/Dem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geospatial/src/Dem.cc b/geospatial/src/Dem.cc index 83b42999..7358f3f1 100644 --- a/geospatial/src/Dem.cc +++ b/geospatial/src/Dem.cc @@ -551,7 +551,7 @@ int Dem::LoadData() std::vector buffer; // Convert to uint64_t for multiplication to avoid overflow. // https://github.com/OSGeo/gdal/issues/9713 - static_assert(std::numeric_limits::max() >= std::numeric_limits::max() * std::numeric_limits::max()); + static_assert(std::numeric_limits::max() >= std::numeric_limits::max() * std::numeric_limits::max()); buffer.resize(static_cast(destWidth) * static_cast(destHeight)); //! @todo Do not assume users only want to load from the origin of the dataset. // Instead, add a configuration to change where in the dataset to read from.