Skip to content

Commit

Permalink
Fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danaozhong committed May 12, 2023
1 parent 3071d22 commit c9be2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl BitWriter{
self.write_unsigned_bits(v, bit_count, 64)
}

pub fn write_i8(&mut self, v: i16, bit_count: u8) -> Result<()> {
pub fn write_i8(&mut self, v: i8, bit_count: u8) -> Result<()> {
self.write_signed_bits(v as i64, bit_count, 8)
}

Expand Down

0 comments on commit c9be2e0

Please sign in to comment.