From 219cd4b21f69fef74c4c86b7135d2fcc7b382dbf Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 5 Jul 2011 15:34:22 -0700 Subject: [PATCH] stdlib: Change ivec::rustrt::ivec_on_heap() to use a 32-bit return value --- src/lib/ivec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ivec.rs b/src/lib/ivec.rs index fcc5667cdb30..abd3ab673246 100644 --- a/src/lib/ivec.rs +++ b/src/lib/ivec.rs @@ -12,7 +12,7 @@ native "rust-intrinsic" mod rusti { native "rust" mod rustrt { fn ivec_reserve[T](&mutable T[mutable?] v, uint n); - fn ivec_on_heap[T](&T[] v) -> bool; + fn ivec_on_heap[T](&T[] v) -> uint; fn ivec_to_ptr[T](&T[] v) -> *T; fn ivec_copy_from_buf[T](&mutable T[mutable?] v, *T ptr, uint count); } @@ -23,7 +23,7 @@ fn reserve[T](&mutable T[mutable?] v, uint n) { } fn on_heap[T](&T[] v) -> bool { - ret rustrt::ivec_on_heap(v); + ret rustrt::ivec_on_heap(v) != 0u; } fn to_ptr[T](&T[] v) -> *T {