1
0
forked from GitHub/gf-core

Add note in PGF2 documentation about risk for integer overflow.

Closes #109
This commit is contained in:
John J. Camilleri
2021-07-06 14:43:21 +02:00
parent e2e5033075
commit 0c3ca3d79a

View File

@@ -140,7 +140,9 @@ unStr (Expr expr touch) =
touch
return (Just s)
-- | Constructs an expression from an integer literal
-- | Constructs an expression from an integer literal.
-- Note that the C runtime does not support long integers, and you may run into overflow issues with large values.
-- See [here](https://github.com/GrammaticalFramework/gf-core/issues/109) for more details.
mkInt :: Int -> Expr
mkInt val =
unsafePerformIO $ do