Skip to content

Commit

Permalink
Merge pull request #180 from frankjannis/patch-1
Browse files Browse the repository at this point in the history
Bugfix in register_base.rs
  • Loading branch information
Y-Nak committed Feb 27, 2024
2 parents abe5558 + 1ef6152 commit 2cc8151
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 2cc8151

Please sign in to comment.