Browse Source

The message scan_f_illegal_char seems to have gained additional parameters since it was
introduced. Take that into account to avoid an access violation.

git-svn-id: trunk@22749 -

svenbarth 13 năm trước cách đây
mục cha
commit
ca6ca31953
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      compiler/m68k/ra68kmot.pas

+ 3 - 1
compiler/m68k/ra68kmot.pas

@@ -221,6 +221,7 @@ const
   var
    token: tasmtoken;
    forcelabel: boolean;
+   s : string;
   begin
     forcelabel := FALSE;
     actasmpattern :='';
@@ -504,7 +505,8 @@ const
                            end;
             else
              begin
-               Message(scan_f_illegal_char);
+               s:=c;
+               Message2(scan_f_illegal_char,s,'$'+hexstr(ord(c),2));
              end;
 
       end; { end case }