This commit is contained in:
Ryan Oldenburg 2022-05-25 19:13:48 -05:00
parent 871740a95e
commit 3b67e809c5

View file

@ -410,7 +410,7 @@ proc decodeSOS(state: var DecoderState) =
if state.scanComponents > state.components.len:
failInvalid("extra components")
if state.scanComponents notin [1, 3]:
if state.scanComponents notin {1, 3}:
failInvalid("unsupported scan component count")
state.componentOrder.setLen(0)