Skip to content

Commit

Permalink
Merge pull request #11277 from andrew-aitchison/bJXLLossless.is.bool
Browse files Browse the repository at this point in the history
GTIFF: store bJXLLossless as a bool
  • Loading branch information
rouault authored Nov 14, 2024
2 parents ecb6f83 + 77acb91 commit 4dd4d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frmts/gtiff/gt_overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ CPLErr GTIFFBuildOverviewsEx(const char *pszFilename, int nBands,
if (const char *pszJXLLossLess =
GetOptionValue("JXL_LOSSLESS", "JXL_LOSSLESS_OVERVIEW"))
{
const double bJXLLossless = CPLTestBool(pszJXLLossLess);
const bool bJXLLossless = CPLTestBool(pszJXLLossLess);
TIFFSetField(hTIFF, TIFFTAG_JXL_LOSSYNESS,
bJXLLossless ? JXL_LOSSLESS : JXL_LOSSY);
GTIFFSetJXLLossless(GDALDataset::ToHandle(hODS), bJXLLossless);
Expand Down

0 comments on commit 4dd4d08

Please sign in to comment.