Skip to content

Commit 317702a

Browse files
committed
---
yaml --- r: 5035 b: refs/heads/master c: f1ed03d h: refs/heads/master i: 5033: 579e675 5031: 8da974c v: v3
1 parent a725102 commit 317702a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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: 0a4d43379ead9ca3014ba71bb68b0db08e7e7e94
2+
refs/heads/master: f1ed03dfa5ae3460d64cb6032da790f04221a153

trunk/src/rt/rust_shape.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,9 @@ class data : public ctxt< data<T,U> > {
775775

776776
void walk_fn(bool align) {
777777
if (align) dp = align_to(dp, sizeof(void *));
778+
U next_dp = dp + sizeof(void *) * 2;
778779
static_cast<T *>(this)->walk_fn(align);
779-
dp += sizeof(void *) * 2;
780+
dp = next_dp;
780781
}
781782

782783
void walk_obj(bool align) {

0 commit comments

Comments
 (0)