From 2f7c583bc12c0bddb28e43ea79b593a014811b09 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Thu, 25 Aug 2011 11:20:43 -0700 Subject: Cleaning up task and comm exports, updating all the test cases. --- src/rt/rust_chan.cpp | 2 +- src/rt/rust_task.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rt') diff --git a/src/rt/rust_chan.cpp b/src/rt/rust_chan.cpp index 12a199f685d..c042f074aa2 100644 --- a/src/rt/rust_chan.cpp +++ b/src/rt/rust_chan.cpp @@ -64,7 +64,7 @@ void rust_chan::disassociate() { port->chans.swap_delete(this); // Delete reference to the port. - port = NULL; + port = NULL; this->deref(); } diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 4fc37ca1ee9..42013ca1f5c 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -26,7 +26,8 @@ struct frame_glue_fns { // library. This struct must agree with the std::task::rust_task record. struct rust_task_user { rust_task_id id; - uint8_t notify_enabled; + uint32_t notify_enabled; // this is way more bits than necessary, but it + // simplifies the alignment. chan_handle notify_chan; context ctx; uintptr_t rust_sp; // Saved sp when not running. -- cgit 1.4.1-3-g733a5