@@ -139,6 +139,7 @@ translateConstant ChType = "__IDRRT__.Char"
139139translateConstant StrType = "__IDRRT__.String"
140140translateConstant BIType = "__IDRRT__.Integer"
141141translateConstant FlType = "__IDRRT__.Float"
142+translateConstant PtrType = "__IDRRT__.Ptr"
142143translateConstant Forgot = "__IDRRT__.Forgot"
143144translateConstant c =
144145 "(function(){throw 'Unimplemented Const: " ++ show c ++ "';})()"
@@ -450,7 +451,7 @@ translateCase var (SConstCase ty e)
450451 | IType <- ty = matchHelper "Int"
451452 | BIType <- ty = matchHelper "Integer"
452453 | FlType <- ty = matchHelper "Float"
453− | PtrType <- ty = matchHelper "Pointer"
454+ | PtrType <- ty = matchHelper "Ptr"
454455 | Forgot <- ty = matchHelper "Forgot"
455456 where
456457 matchHelper tyName = translateTypeMatch var tyName e