Fixed rounding mode

pull/17/head
Erin 2023-11-03 09:43:08 +01:00
parent cf03f9659b
commit 37a22aceb4
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ impl TryFrom<u8> for RoundingMode {
type Error = ();
fn try_from(value: u8) -> Result<Self, Self::Error> {
(value >= 3)
(value <= 3)
.then(|| unsafe { core::mem::transmute(value) })
.ok_or(())
}