Skip to content

Commit 3b3cd55

Browse files
committed
Cast NULL to uintptr_t when calling rust_task::start().
On gcc 4.5.1 (fedora 14 i686) rust_test_runtime.cpp fails to compile with the following error: rt/test/rust_test_runtime.cpp:57:61: error: passing NULL to non-pointer argument 3 of ‘void rust_task::start(uintptr_t, uintptr_t, uintptr_t, size_t)’ The explicit cast works around the error.
1 parent 679dca8 commit 3b3cd55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/test/rust_test_runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ rust_task_test::worker::run() {
5454
kernel->create_domain(crate, "test");
5555
rust_dom *domain = handle->referent();
5656
domain->root_task->start(crate->get_exit_task_glue(),
57-
(uintptr_t)&task_entry, NULL, 0);
57+
(uintptr_t)&task_entry, (uintptr_t)NULL, 0);
5858
domain->start_main_loop();
5959
kernel->destroy_domain(domain);
6060
}

0 commit comments

Comments
 (0)