Skip to content

Commit

Permalink
Bugfix in register_base.rs
Browse files Browse the repository at this point in the history
Function parameters were out of order
  • Loading branch information
frankjannis committed Jan 13, 2024
1 parent 1e34b0a commit 3827c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genapi/src/register_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl RegisterBase {
) -> GenApiResult<R> {
let length = self.length(device, store, cx)?;
let address = self.address(device, store, cx)?;
if let Some(cache) = cx.get_cache(nid, length, address) {
if let Some(cache) = cx.get_cache(nid, address, length) {
f(cache)
} else {
let mut buf = vec![0; length as usize];
Expand Down

0 comments on commit 3827c05

Please sign in to comment.