about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2011-11-12 22:17:40 -0800
committerNiko Matsakis <niko@alum.mit.edu>2011-11-16 15:16:42 -0800
commit26b0662fb8ccea71f74e98a3c28d8dda6cbb2b20 (patch)
treedcd1116c81811647d44c086ee90ba63150fa1667 /src/lib
parent5502354f3313927b1f50f0a59bb00af56a64a9d1 (diff)
fix alignment for chan_handle structs; rust equiv is translated
to char[16], not struct{long,long}
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/task.rs b/src/lib/task.rs
index 6f5a403f2db..531cf8bac2c 100644
--- a/src/lib/task.rs
+++ b/src/lib/task.rs
@@ -80,7 +80,7 @@ native mod rustrt {
 
 type rust_task =
     {id: task,
-     mutable notify_enabled: u32,
+     mutable notify_enabled: int,
      mutable notify_chan: comm::chan<task_notification>,
      mutable stack_ptr: *u8};
 
@@ -318,7 +318,7 @@ fn unsafe_spawn_inner(-thunk: fn@(),
     // set up notifications if they are enabled.
     alt notify {
       some(c) {
-        (**task_ptr).notify_enabled = 1u32;;
+        (**task_ptr).notify_enabled = 1;
         (**task_ptr).notify_chan = c;
       }
       none { }