diff --git a/src/pixie/fileformats/jpeg.nim b/src/pixie/fileformats/jpeg.nim index 9651439..5610239 100644 --- a/src/pixie/fileformats/jpeg.nim +++ b/src/pixie/fileformats/jpeg.nim @@ -489,7 +489,7 @@ proc getBitsAsUnsignedInt(state: var DecoderState, n: int): int = state.bitCount -= n return k.int -{.push overflowChecks: off.} +{.push overflowChecks: off, rangeChecks: off.} proc decodeRegularBlock( state: var DecoderState, component: int, data: var array[64, int16]