diff -r a9d509848390 -r 4b4a043111f4 tools/pas2c/Pas2C.hs --- a/tools/pas2c/Pas2C.hs Tue Feb 11 22:05:03 2014 +0400 +++ b/tools/pas2c/Pas2C.hs Wed Feb 12 00:50:15 2014 +0400 @@ -699,6 +699,10 @@ initExpr2C' (BuiltInFunction "succ" [e]) = liftM (<> text " + 1") $ initExpr2C' e initExpr2C' (BuiltInFunction "pred" [e]) = liftM (<> text " - 1") $ initExpr2C' e initExpr2C' b@(BuiltInFunction _ _) = error $ show b +initExpr2C' (InitTypeCast t' i) = do + e <- initExpr2C i + t <- id2C IOLookup t' + return . parens $ parens t <> e initExpr2C' a = error $ "initExpr2C: don't know how to render " ++ show a