浏览代码

m68k: fix the assembler reader to bail out earlier on a failed parsing of a constant expression

Karoly Balogh 1 年之前
父节点
当前提交
53e7006d56
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/m68k/ra68kmot.pas

+ 1 - 0
compiler/m68k/ra68kmot.pas

@@ -982,6 +982,7 @@ const
       else
         begin
           Message(asmr_e_syntax_error);
+          Consume(actasmtoken);
         end;
       end; { end case }
     until actasmtoken = AS_SEPARATOR;