Skip to content

Commit

Permalink
odb: fix OdbReader read return value
Browse files Browse the repository at this point in the history
 git_odb_stream_read return the number of bytes read.
  • Loading branch information
gensmusic committed Jun 22, 2024
1 parent 9a5c970 commit b1b2f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ impl<'repo> io::Read for OdbReader<'repo> {
if res < 0 {
Err(io::Error::new(io::ErrorKind::Other, "Read error"))
} else {
Ok(len)
Ok(res as _)
}
}
}
Expand Down

0 comments on commit b1b2f55

Please sign in to comment.