Skip to content

Commit

Permalink
fix Sender cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 6, 2022
1 parent 3ee36f4 commit 382380b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/modals/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ fn wrapped_main() -> ! {
}
send_message(
renderer_cid,
Message::new_scalar(Opcode::FinishProgress.to_usize().unwrap(), msg.sender as usize, 0, 0, 0),
Message::new_scalar(Opcode::FinishProgress.to_usize().unwrap(), msg.sender.to_usize(), 0, 0, 0),
)
.expect("couldn't update progress bar");
}),
Expand Down Expand Up @@ -700,7 +700,7 @@ fn wrapped_main() -> ! {
renderer_modal.gam.relinquish_focus().unwrap();
op = RendererState::None;
// unblock the caller, which was forwarded on as the first argument
xous::return_scalar(caller as Sender, 0).ok();
xous::return_scalar(xous::sender::Sender::from_usize(caller), 0).ok();
token_lock = next_lock(&mut work_queue);
/*
if work_queue.len() > 0 {
Expand Down

0 comments on commit 382380b

Please sign in to comment.