Skip to content

Commit 219cd4b

Browse files
committed
stdlib: Change ivec::rustrt::ivec_on_heap() to use a 32-bit return value
1 parent 741db24 commit 219cd4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/ivec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ native "rust-intrinsic" mod rusti {
1212

1313
native "rust" mod rustrt {
1414
fn ivec_reserve[T](&mutable T[mutable?] v, uint n);
15-
fn ivec_on_heap[T](&T[] v) -> bool;
15+
fn ivec_on_heap[T](&T[] v) -> uint;
1616
fn ivec_to_ptr[T](&T[] v) -> *T;
1717
fn ivec_copy_from_buf[T](&mutable T[mutable?] v, *T ptr, uint count);
1818
}
@@ -23,7 +23,7 @@ fn reserve[T](&mutable T[mutable?] v, uint n) {
2323
}
2424

2525
fn on_heap[T](&T[] v) -> bool {
26-
ret rustrt::ivec_on_heap(v);
26+
ret rustrt::ivec_on_heap(v) != 0u;
2727
}
2828

2929
fn to_ptr[T](&T[] v) -> *T {

0 commit comments

Comments
 (0)