Explorar el Código

Bug in dozenal number parser

Getty Ritter hace 9 años
padre
commit
28749d52bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Data/SCargot/Common.hs

+ 1 - 1
Data/SCargot/Common.hs

@@ -171,7 +171,7 @@ dozDigit = digit <|> oneOf "AaBb\x218a\x218b"
 --   and @'\x218b'@ (↋) as digits with the decimal values @10@ and @11@
 --   respectively.
 dozNumber :: Parser Integer
-dozNumber = number 16 dozDigit
+dozNumber = number 12 dozDigit
 
 -- | A parser for signed duodecimal (dozenal) numbers, with an optional leading @+@ or @-@.
 signedDozNumber :: Parser Integer