Skip to content
Snippets Groups Projects
Unverified Commit f4272e33 authored by Ermal Kaleci's avatar Ermal Kaleci Committed by GitHub
Browse files

replace div to mul by signum (#127)

parent d511ba03
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ impl Fixed128 {
.checked_mul(U256::from(DIV))
.and_then(|n| n.checked_div(U256::from(rhs)))
.and_then(|n| TryInto::<i128>::try_into(n).ok())
.map(|n| Self(n / signum))
.map(|n| Self(n * signum))
}
/// Checked mul for int type `N`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment