diff --git a/fco2/GenerateC.hs b/fco2/GenerateC.hs index 0577c05..5ecb3ca 100644 --- a/fco2/GenerateC.hs +++ b/fco2/GenerateC.hs @@ -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 [] = []