mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-16 08:19:31 -06:00
readExpr needs an additional call to mask_
This commit is contained in:
@@ -280,7 +280,8 @@ readExpr :: String -> Maybe Expr
|
||||
readExpr str =
|
||||
unsafePerformIO $
|
||||
withText str $ \c_str ->
|
||||
withForeignPtr unmarshaller $ \u -> do
|
||||
withForeignPtr unmarshaller $ \u ->
|
||||
mask_ $ do
|
||||
c_expr <- pgf_read_expr c_str u
|
||||
if c_expr == castPtrToStablePtr nullPtr
|
||||
then return Nothing
|
||||
|
||||
Reference in New Issue
Block a user