File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ native mod rustrt {
80
80
81
81
type rust_task =
82
82
{ id : task ,
83
- mutable notify_enabled: u32 ,
83
+ mutable notify_enabled: int ,
84
84
mutable notify_chan: comm:: chan < task_notification > ,
85
85
mutable stack_ptr: * u8 } ;
86
86
@@ -318,7 +318,7 @@ fn unsafe_spawn_inner(-thunk: fn@(),
318
318
// set up notifications if they are enabled.
319
319
alt notify {
320
320
some ( c ) {
321
- ( * * task_ptr ) . notify_enabled = 1u32 ; ;
321
+ ( * * task_ptr ) . notify_enabled = 1 ;
322
322
( * * task_ptr ) . notify_chan = c ;
323
323
}
324
324
none { }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ struct frame_glue_fns {
44
44
// library. This struct must agree with the std::task::rust_task record.
45
45
struct rust_task_user {
46
46
rust_task_id id;
47
- uint32_t notify_enabled; // this is way more bits than necessary, but it
47
+ intptr_t notify_enabled; // this is way more bits than necessary, but it
48
48
// simplifies the alignment.
49
49
chan_handle notify_chan;
50
50
uintptr_t rust_sp; // Saved sp when not running.
You can’t perform that action at this time.
0 commit comments