Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/unicorn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ impl<'a, D> Unicorn<'a, D> {
unsafe { uc_mem_protect(self.get_handle(), address, size, perms.0 as _) }.into()
}

/// Write an unsigned value from a register.
/// Write an unsigned value to a register.
pub fn reg_write<T: Into<i32>>(&mut self, regid: T, value: u64) -> Result<(), uc_error> {
unsafe { uc_reg_write(self.get_handle(), regid.into(), (&raw const value).cast()) }.into()
}
Expand Down