Browse Source

* Use new instead of getmem

Michaël Van Canneyt 4 months ago
parent
commit
e33f720fa5
1 changed files with 1 additions and 1 deletions
  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;