diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-11-17 14:23:48 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2011-11-17 14:23:48 -0800 |
| commit | f597971441f99e3d0f6673879478566e79f09111 (patch) | |
| tree | d90d03c2c3e127c18704a2d545611ecbc4a85876 | |
| parent | 8925875ccb634f04c8495de8a36a81a858b0706e (diff) | |
| download | rust-f597971441f99e3d0f6673879478566e79f09111.tar.gz rust-f597971441f99e3d0f6673879478566e79f09111.zip | |
make ref cnts a long not an int
| -rw-r--r-- | src/rt/rust_shape.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_shape.h b/src/rt/rust_shape.h index fffd19efbe8..cc5f05afb05 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<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); } |
