浏览代码

* fixed support for type widechar consts

florian 22 年之前
父节点
当前提交
75a0d4154d
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      compiler/ptconst.pas

+ 6 - 1
compiler/ptconst.pas

@@ -139,6 +139,8 @@ implementation
                     uwidechar :
                     uwidechar :
                       begin
                       begin
                          if is_constcharnode(p) then
                          if is_constcharnode(p) then
+                           inserttypeconv(p,cwidechartype);
+                         if is_constwidecharnode(p) then
                            curconstSegment.concat(Tai_const.Create_16bit(tordconstnode(p).value))
                            curconstSegment.concat(Tai_const.Create_16bit(tordconstnode(p).value))
                          else
                          else
                            Message(cg_e_illegal_expression);
                            Message(cg_e_illegal_expression);
@@ -985,7 +987,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.62  2002-12-07 14:15:33  carl
+  Revision 1.63  2002-12-26 12:34:54  florian
+    * fixed support for type widechar consts
+
+  Revision 1.62  2002/12/07 14:15:33  carl
     + add some explicit typecasts to remove some warnings
     + add some explicit typecasts to remove some warnings
 
 
   Revision 1.61  2002/11/25 18:43:33  carl
   Revision 1.61  2002/11/25 18:43:33  carl