Skip to content

Commit 2932fea

Browse files
committed
fix: reading boolean reads i64
So we don't have to perform a cast as well as the comparison.
1 parent 6a112e3 commit 2932fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fitsio/src/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl ReadsKey for bool {
7575
where
7676
Self: Sized,
7777
{
78-
let int_value = i32::read_key(f, name)?;
78+
let int_value = i64::read_key(f, name)?;
7979
Ok(int_value > 0)
8080
}
8181
}

0 commit comments

Comments
 (0)