Skip to content

Commit

Permalink
Fix riscv lock() so it returns RTIC_INTERNAL_R and ceiling's type
Browse files Browse the repository at this point in the history
  • Loading branch information
steewbsd committed Jun 23, 2023
1 parent 7952e33 commit cf52c20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtic-macros/src/codegen/bindings/riscv_slic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ pub fn impl_mutex(
#[inline(always)]
fn lock<RTIC_INTERNAL_R>(&mut self, f: impl FnOnce(&mut #ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R {

const CEILING: u16 = #ceiling.into();
const CEILING: u8 = #ceiling;

unsafe {
rtic::export::lock(#ptr, CEILING, f);
rtic::export::lock(#ptr, CEILING, f)
}
}
}
Expand Down

0 comments on commit cf52c20

Please sign in to comment.