Skip to content

Commit

Permalink
Fix TFORM1 value parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
fxpineau committed Oct 11, 2024
1 parent 4314e9e commit 25a445a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nested/map/fits/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl FitsCard for TForm1 {
)),
}
} else {
let (n, k) = val.split_at(1);
let (n, k) = val.split_at(val.len() - 1);
let n_str = unsafe { str::from_utf8_unchecked(n) };
let n = n_str
.parse::<u32>()
Expand Down

0 comments on commit 25a445a

Please sign in to comment.