Skip to content

Commit f597971

Browse files
committed
make ref cnts a long not an int
1 parent 8925875 commit f597971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rt/rust_shape.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace shape {
2727

2828
typedef unsigned long tag_variant_t;
2929
typedef unsigned long tag_align_t;
30+
typedef unsigned long ref_cnt_t;
3031

3132
// Constants
3233

@@ -888,7 +889,7 @@ data<T,U>::walk_box_contents() {
888889
typename U::template data<uint8_t *>::t box_ptr = bump_dp<uint8_t *>(dp);
889890

890891
U ref_count_dp(box_ptr);
891-
T sub(*static_cast<T *>(this), ref_count_dp + sizeof(uint32_t));
892+
T sub(*static_cast<T *>(this), ref_count_dp + sizeof(ref_cnt_t));
892893
static_cast<T *>(this)->walk_box_contents(sub, ref_count_dp);
893894
}
894895

0 commit comments

Comments
 (0)