@@ -921,6 +921,9 @@ module Expr =
921921 Exception.raiseInternal " Invalid record update" [ " update" , update ])
922922 PT.ERecordUpdate( uint64 id, fromDT record, updates)
923923
924+ | DEnum(_, _, [], " EConstant" , [ DInt64 id; name ]) ->
925+ PT.EConstant( uint64 id, NameResolution.fromDT FQConstantName.fromDT name)
926+
924927 | e -> Exception.raiseInternal " Invalid Expr" [ " e" , e ]
925928
926929
@@ -946,7 +949,7 @@ module Const =
946949 | PT.Const.CUInt128 i -> " CUInt128" , [ DUInt128 i ]
947950 | PT.Const.CFloat( sign, w, f) ->
948951 " CFloat" , [ Sign.toDT sign; DString w; DString f ]
949- | PT.Const.CChar c -> " CChar" , [ DChar c ]
952+ | PT.Const.CChar c -> " CChar" , [ DString c ]
950953 | PT.Const.CString s -> " CString" , [ DString s ]
951954
952955 | PT.Const.CTuple( first, second, theRest) ->
@@ -986,7 +989,7 @@ module Const =
986989 | DEnum(_, _, [], " CUInt128" , [ DUInt128 i ]) -> PT.Const.CUInt128 i
987990 | DEnum(_, _, [], " CBool" , [ DBool b ]) -> PT.Const.CBool b
988991 | DEnum(_, _, [], " CString" , [ DString s ]) -> PT.Const.CString s
989- | DEnum(_, _, [], " CChar" , [ DChar c ]) -> PT.Const.CChar c
992+ | DEnum(_, _, [], " CChar" , [ DString c ]) -> PT.Const.CChar c
990993 | DEnum(_, _, [], " CFloat" , [ sign; DString w; DString f ]) ->
991994 PT.Const.CFloat( Sign.fromDT sign, w, f)
992995 | DEnum(_, _, [], " CUnit" , []) -> PT.Const.CUnit
0 commit comments