Fix printf

This commit is contained in:
Adam Sampson 2007-04-19 18:01:50 +00:00
parent 618ded6afd
commit 4efde46770

View File

@ -198,7 +198,7 @@ genLiteralRepr (A.ArrayLiteral m es)
tell ["}"]
hexToOct :: String -> String
hexToOct h = printf "%03o" (fst $ head $ readHex h)
hexToOct h = printf "%03o" ((fst $ head $ readHex h) :: Int)
convStringLiteral :: String -> String
convStringLiteral [] = []