浏览代码

Make sure to set alignment of new temp slot to new value

git-svn-id: trunk@38954 -
pierre 7 年之前
父节点
当前提交
1a23672e7b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/tgobj.pas

+ 1 - 1
compiler/tgobj.pas

@@ -395,13 +395,13 @@ implementation
                { Create new block and resize the old block }
                tl^.fini:=fini;
                tl^.size:=size;
-               tl^.alignment:=alignment;
                tl^.nextfree:=nil;
                { Resize the old block }
                dec(bestslot^.size,size);
              end;
             tl^.temptype:=temptype;
             tl^.def:=def;
+            tl^.alignment:=alignment;
             tl^.nextfree:=nil;
           end
          else