Skip to content

Commit d5bc7a0

Browse files
committed
---
yaml --- r: 5034 b: refs/heads/master c: f1ed03d h: refs/heads/master v: v3
1 parent 72823da commit d5bc7a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

+1-1
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

+2-1
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)