From bd5ef4540ebe19e8bc1ee668f143699d32f073a5 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg <ryan@guzba.com> Date: Thu, 26 May 2022 00:41:52 -0500 Subject: [PATCH] f --- src/pixie/fileformats/jpeg.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pixie/fileformats/jpeg.nim b/src/pixie/fileformats/jpeg.nim index f2eebf3..43dc6d0 100644 --- a/src/pixie/fileformats/jpeg.nim +++ b/src/pixie/fileformats/jpeg.nim @@ -649,7 +649,7 @@ proc decodeProgressiveContinuationBlock( data[zig] = cast[int16](state.receiveExtend(s.int) * (1 shl shift)) else: - var bit = 1 shl state.successiveApproxLow + let bit = 1 shl state.successiveApproxLow if state.eobRun != 0: dec state.eobRun @@ -681,9 +681,9 @@ proc decodeProgressiveContinuationBlock( if s != 1: failInvalid("bad huffman code") if state.readBit() != 0: - s = bit.int + s = bit else: - s = -bit.int + s = -bit while k <= state.spectralEnd: let zig = deZigZag[k]