瀏覽代碼

Fix bug report #35065 using provided patch by J. Gareth Moreton

git-svn-id: trunk@41310 -
pierre 6 年之前
父節點
當前提交
d4e059bd41
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      compiler/aasmtai.pas

+ 3 - 2
compiler/aasmtai.pas

@@ -2926,9 +2926,10 @@ implementation
         i : integer;
       begin
         inherited ppuload(t,ppufile);
-        { hopefully, we don't get problems with big/litte endian here when cross compiling :/ }
+        { hopefully, we don't get problems with big/little endian here when cross compiling :/ }
         ppufile.getdata(condition,sizeof(tasmcond));
-        allocate_oper(ppufile.getbyte);
+        ops := ppufile.getbyte;
+        allocate_oper(ops);
         for i:=0 to ops-1 do
           ppuloadoper(ppufile,oper[i]^);
         opcode:=tasmop(ppufile.getword);