stdlib: Change ivec::rustrt::ivec_on_heap() to use a 32-bit return value
This commit is contained in:
parent
741db24e49
commit
219cd4b21f
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue