From 610478695f8f388d5a383397ba29f41977d3917e Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Fri, 16 Jul 2021 16:46:34 +0200 Subject: [PATCH] Bugfix in interpreting Sex value --- openpgp-card/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index a93bbbd..65dfbef 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -167,9 +167,9 @@ impl Sex { impl From for Sex { fn from(s: u8) -> Self { match s { - 31 => Sex::Male, - 32 => Sex::Female, - 39 => Sex::NotApplicable, + 0x31 => Sex::Male, + 0x32 => Sex::Female, + 0x39 => Sex::NotApplicable, _ => Sex::NotKnown, } }