Explorar o código

compiler: emit constants of encoding 0 in CP_NONE/DefaultSystemCodePage encoding (depends on modes witch)

git-svn-id: trunk@19302 -
paul %!s(int64=14) %!d(string=hai) anos
pai
achega
ff3791d1f3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/asmutils.pas

+ 2 - 0
compiler/asmutils.pas

@@ -59,6 +59,8 @@ uses
             current_asmdata.getdatalabel(referencelab);
             list.concat(tai_label.create(referencelab));
           end;
+        if (encoding=0) then
+          encoding:=CP_NONE;
         if (encoding=CP_NONE) and (m_systemcodepage in current_settings.modeswitches) then
           encoding:=current_settings.sourcecodepage;
         list.concat(tai_const.create_16bit(encoding));