Skip to content

Commit b6f103e

Browse files
committed
Fix rt-sched-1.rs (broke in 6fc730b)
1 parent e9382ef commit b6f103e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/run-pass/rt-sched-1.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// Tests of the runtime's scheduler interface
22

3+
import ptr::is_null;
4+
35
type sched_id = int;
4-
type task_id = int;
6+
type task_id = *libc::c_void;
57

68
type task = *libc::c_void;
79
type closure = *libc::c_void;
810

911
native mod rustrt {
10-
fn rust_new_sched(num_threads: uint) -> sched_id;
12+
fn rust_new_sched(num_threads: libc::uintptr_t) -> sched_id;
1113
fn rust_get_sched_id() -> sched_id;
1214
fn rust_new_task_in_sched(id: sched_id) -> task_id;
1315
fn start_task(id: task_id, f: closure);

0 commit comments

Comments
 (0)