mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
remove wrong subtraction in dec div
This commit is contained in:
parent
f57085da05
commit
7ef166a11f
1 changed files with 2 additions and 2 deletions
|
@ -693,10 +693,10 @@ fn div_u256_by_u128(numer: U256, denom: u128) U256 {
|
|||
var s_lo: u128 = undefined;
|
||||
if (s_u128 == 1) {
|
||||
s_hi = math.maxInt(u128);
|
||||
s_lo = math.maxInt(u128) - 2;
|
||||
s_lo = math.maxInt(u128);
|
||||
} else {
|
||||
s_hi = 0;
|
||||
s_lo = s_u128;
|
||||
s_lo = 0;
|
||||
}
|
||||
var s = .{
|
||||
.hi = s_hi,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue