Skip to content

Commit 8245908

Browse files
committed
---
yaml --- r: 3590 b: refs/heads/master c: 219cd4b h: refs/heads/master v: v3
1 parent 2c79d6c commit 8245908

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 741db24e49580ab3157e7cfaaf5bfb1d5b9afc3b
2+
refs/heads/master: 219cd4b21f69fef74c4c86b7135d2fcc7b382dbf

trunk/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)