diff --git a/src/rt/rust_shape.h b/src/rt/rust_shape.h index fffd19efbe8f..cc5f05afb051 100644 --- a/src/rt/rust_shape.h +++ b/src/rt/rust_shape.h @@ -27,6 +27,7 @@ namespace shape { typedef unsigned long tag_variant_t; typedef unsigned long tag_align_t; +typedef unsigned long ref_cnt_t; // Constants @@ -888,7 +889,7 @@ data::walk_box_contents() { typename U::template data::t box_ptr = bump_dp(dp); U ref_count_dp(box_ptr); - T sub(*static_cast(this), ref_count_dp + sizeof(uint32_t)); + T sub(*static_cast(this), ref_count_dp + sizeof(ref_cnt_t)); static_cast(this)->walk_box_contents(sub, ref_count_dp); }