Jelajahi Sumber

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

git-svn-id: trunk@38954 -
pierre 7 tahun lalu
induk
melakukan
1a23672e7b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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