about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2011-11-17 14:23:48 -0800
committerNiko Matsakis <niko@alum.mit.edu>2011-11-17 14:23:48 -0800
commitf597971441f99e3d0f6673879478566e79f09111 (patch)
treed90d03c2c3e127c18704a2d545611ecbc4a85876
parent8925875ccb634f04c8495de8a36a81a858b0706e (diff)
downloadrust-f597971441f99e3d0f6673879478566e79f09111.tar.gz
rust-f597971441f99e3d0f6673879478566e79f09111.zip
make ref cnts a long not an int
-rw-r--r--src/rt/rust_shape.h3
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);
 }