Skip to content

Commit c73e4cd

Browse files
committed
Fix the bounds for OneOrMore.
1 parent 6fbdd7e commit c73e4cd

File tree

1 file changed

+1
-1
lines changed
  • src/Codec/CBOR/Cuddle/CBOR

1 file changed

+1
-1
lines changed

src/Codec/CBOR/Cuddle/CBOR/Gen.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ applyOccurenceIndicator OIZeroOrMore oldGen =
368368
genUniformRM (0 :: Int, 10) >>= \i ->
369369
G <$> replicateM i oldGen
370370
applyOccurenceIndicator OIOneOrMore oldGen =
371-
genUniformRM (0 :: Int, 10) >>= \i ->
371+
genUniformRM (1 :: Int, 10) >>= \i ->
372372
G <$> replicateM i oldGen
373373
applyOccurenceIndicator (OIBounded mlb mub) oldGen =
374374
genUniformRM (fromMaybe 0 mlb :: Word64, fromMaybe 10 mub)

0 commit comments

Comments
 (0)