Skip to content

Commit

Permalink
Remove bugged static assert
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Jul 31, 2024
1 parent 395721a commit 5352a04
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion geospatial/src/Dem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ int Dem::LoadData()
std::vector<float> buffer;
// Convert to uint64_t for multiplication to avoid overflow.
// https://github.com/OSGeo/gdal/issues/9713
static_assert(std::numeric_limits<uint64_t>::max() >= std::numeric_limits<int>::max() * std::numeric_limits<int>::max());
buffer.resize(static_cast<uint64_t>(destWidth) * static_cast<uint64_t>(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.
Expand Down

0 comments on commit 5352a04

Please sign in to comment.