Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Jan 28, 2025
1 parent a29b5a7 commit 5061f87
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gcore/gdalrasterband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7740,8 +7740,8 @@ CPLErr GDALRasterBand::ComputeRasterMinMaxLocation(double *pdfMin,
const int nMinYBlock = static_cast<int>(pos_min / nBlockXSize);
bool bValid = true;
const double dfMinValueBlock =
GetPixelValue(eDataType, bSignedByte, pData, pos_min,
sNoDataValues, bValid);
GetPixelValue(eDataType, bSignedByte, pData, pos_min,
sNoDataValues, bValid);
if (bValid && dfMinValueBlock < dfMin)
{
dfMin = dfMinValueBlock;
Expand All @@ -7755,8 +7755,9 @@ CPLErr GDALRasterBand::ComputeRasterMinMaxLocation(double *pdfMin,
const int nMaxXBlock = static_cast<int>(pos_max % nBlockXSize);
const int nMaxYBlock = static_cast<int>(pos_max / nBlockXSize);
bool bValid = true;
const double dfMaxValueBlock = GetPixelValue(
eDataType, bSignedByte, pData, pos_max, sNoDataValues, bValid);
const double dfMaxValueBlock =
GetPixelValue(eDataType, bSignedByte, pData, pos_max,
sNoDataValues, bValid);
if (bValid && dfMaxValueBlock > dfMax)
{
dfMax = dfMaxValueBlock;
Expand Down

0 comments on commit 5061f87

Please sign in to comment.