We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8925875 commit f597971Copy full SHA for f597971
src/rt/rust_shape.h
@@ -27,6 +27,7 @@ namespace shape {
27
28
typedef unsigned long tag_variant_t;
29
typedef unsigned long tag_align_t;
30
+typedef unsigned long ref_cnt_t;
31
32
// Constants
33
@@ -888,7 +889,7 @@ data<T,U>::walk_box_contents() {
888
889
typename U::template data<uint8_t *>::t box_ptr = bump_dp<uint8_t *>(dp);
890
891
U ref_count_dp(box_ptr);
- 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));
893
static_cast<T *>(this)->walk_box_contents(sub, ref_count_dp);
894
}
895
0 commit comments