Skip to content

Commit 60fee87

Browse files
committed
---
yaml --- r: 1462 b: refs/heads/master c: 9d59d33 h: refs/heads/master v: v3
1 parent 2325366 commit 60fee87

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 71f853b3fdaede022ac9b680ff2a3767379faacd
2+
refs/heads/master: 9d59d33515d889f6e65f50226ba83d91a36bba0e

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,9 @@ fn dynamic_size_of(@block_ctxt cx, @ty.t t) -> result {
909909
bcx.build.Store(umax(bcx, this_size, old_max_size), max_size);
910910
}
911911

912-
ret res(bcx, bcx.build.Load(max_size));
912+
auto max_size_val = bcx.build.Load(max_size);
913+
auto total_size = bcx.build.Add(max_size_val, llsize_of(T_int()));
914+
ret res(bcx, total_size);
913915
}
914916
}
915917
}

0 commit comments

Comments
 (0)