From f597971441f99e3d0f6673879478566e79f09111 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 17 Nov 2011 14:23:48 -0800 Subject: [PATCH] make ref cnts a long not an int --- src/rt/rust_shape.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::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); }