Skip to content

Commit

Permalink
fix: reading boolean reads i64
Browse files Browse the repository at this point in the history
So we don't have to perform a cast as well as the comparison.
  • Loading branch information
simonrw committed Jul 10, 2022
1 parent 6a112e3 commit 2932fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fitsio/src/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl ReadsKey for bool {
where
Self: Sized,
{
let int_value = i32::read_key(f, name)?;
let int_value = i64::read_key(f, name)?;
Ok(int_value > 0)
}
}
Expand Down

0 comments on commit 2932fea

Please sign in to comment.