Skip to content

Commit

Permalink
GTIFF: store bJXLLossless as a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-aitchison authored and rouault committed Nov 14, 2024
1 parent ad243af commit 45664b2
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 45664b2

Please sign in to comment.