tools/pas2c/Pas2C.hs
changeset 13859 885ee14fe640
parent 13857 bc90a932a4b3
child 13860 aba78789f0bf
--- a/tools/pas2c/Pas2C.hs	Fri Oct 05 21:04:01 2018 +0200
+++ b/tools/pas2c/Pas2C.hs	Fri Oct 05 21:09:27 2018 +0200
@@ -705,7 +705,8 @@
          (BTArray i _ _) -> initExpr2C' $ BuiltInFunction "pred" [InitRange i]
          BTInt _ -> case e' of
                   (Identifier "LongInt" _) -> return $ int (2147483647)
-         _ -> error $ "BuiltInFunction 'high' in initExpr: " ++ show e'
+                  (Identifier "LongWord" _) -> return $ text "4294967295"
+                  _ -> error $ "BuiltInFunction 'high' in initExpr: " ++ show e'
          a -> error $ "BuiltInFunction 'high' in initExpr: " ++ show a ++ ": " ++ show hi
 initExpr2C' (BuiltInFunction "succ" [BuiltInFunction "pred" [e]]) = initExpr2C' e
 initExpr2C' (BuiltInFunction "pred" [BuiltInFunction "succ" [e]]) = initExpr2C' e