Skip to content

Commit 20bc839

Browse files
author
Grok Compression
committed
fix a few warnings
1 parent 1834259 commit 20bc839

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/lib/core/wavelet/WaveletReverse.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,9 @@ void WaveletReverse::v_16_53(const dwt_scratch<int16_t>* scratch, Buffer2dSimple
14891489
for(uint32_t c = 0; c < nb_cols; c++, winL.buf_++, winH.buf_++, winDest.buf_++)
14901490
{
14911491
scratch->mem[1] = (int16_t)(winL.buf_[0] - ((winH.buf_[0] + 1) >> 1));
1492-
winDest.buf_[0] = std::clamp<int16_t>(winH.buf_[0] + scratch->mem[1] + dc, dcMin, dcMax);
1493-
winDest.buf_[1] = std::clamp<int16_t>(scratch->mem[1] + dc, dcMin, dcMax);
1492+
winDest.buf_[0] =
1493+
(int16_t)std::clamp<int32_t>(winH.buf_[0] + scratch->mem[1] + dc, dcMin, dcMax);
1494+
winDest.buf_[1] = (int16_t)std::clamp<int32_t>(scratch->mem[1] + dc, dcMin, dcMax);
14941495
}
14951496
}
14961497
else

src/lib/core/wavelet/WaveletReverse97_16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ namespace HWY_NAMESPACE
649649
*
650650
* All arithmetic stays in int16 since dc_shift and dc_max fit for ≤12-bit.
651651
**************************************************************************/
652-
static void scalar_v_synth_16_97_dc(int16_t* scratch, uint32_t height, const int16_t* bandL,
652+
[[maybe_unused]] static void scalar_v_synth_16_97_dc(int16_t* scratch, uint32_t height, const int16_t* bandL,
653653
uint32_t strideL, const int16_t* bandH, uint32_t strideH,
654654
int16_t* dest, uint32_t strideDest, uint32_t parity,
655655
uint32_t sn, uint32_t dn, int16_t dc, int16_t dcMin,

0 commit comments

Comments
 (0)