mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
make ref cnts a long not an int
This commit is contained in:
parent
8925875ccb
commit
f597971441
@ -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<T,U>::walk_box_contents() {
|
||||
typename U::template data<uint8_t *>::t box_ptr = bump_dp<uint8_t *>(dp);
|
||||
|
||||
U ref_count_dp(box_ptr);
|
||||
T sub(*static_cast<T *>(this), ref_count_dp + sizeof(uint32_t));
|
||||
T sub(*static_cast<T *>(this), ref_count_dp + sizeof(ref_cnt_t));
|
||||
static_cast<T *>(this)->walk_box_contents(sub, ref_count_dp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user