Bugfix in interpreting Sex value
This commit is contained in:
parent
c8a742e8d0
commit
610478695f
1 changed files with 3 additions and 3 deletions
|
@ -167,9 +167,9 @@ impl Sex {
|
||||||
impl From<u8> for Sex {
|
impl From<u8> for Sex {
|
||||||
fn from(s: u8) -> Self {
|
fn from(s: u8) -> Self {
|
||||||
match s {
|
match s {
|
||||||
31 => Sex::Male,
|
0x31 => Sex::Male,
|
||||||
32 => Sex::Female,
|
0x32 => Sex::Female,
|
||||||
39 => Sex::NotApplicable,
|
0x39 => Sex::NotApplicable,
|
||||||
_ => Sex::NotKnown,
|
_ => Sex::NotKnown,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue