Browse Source

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

git-svn-id: trunk@38954 -
pierre 7 năm trước cách đây
mục cha
commit
1a23672e7b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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