浏览代码

* Use new instead of getmem

Michaël Van Canneyt 4 月之前
父节点
当前提交
e33f720fa5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/assemble.pas

+ 1 - 1
compiler/assemble.pas

@@ -2955,7 +2955,7 @@ Implementation
         if assigned(asminfos[t]) then
           writeln('Warning: Assembler is already registered!')
         else
-          Getmem(asminfos[t],sizeof(tasminfo));
+          new(asminfos[t]);
         asminfos[t]^:=r;
         CAssembler[t]:=c;
       end;