fix a bug in udivmoddi4
This commit is contained in:
parent
69376af183
commit
f3eb08a96d
|
@ -186,8 +186,8 @@ pub extern "C" fn __udivmoddi4(n: u64, d: u64, rem: Option<&mut u64>) -> u64 {
|
||||||
if sr > u32::bits() - 1 {
|
if sr > u32::bits() - 1 {
|
||||||
if let Some(rem) = rem {
|
if let Some(rem) = rem {
|
||||||
*rem = n;
|
*rem = n;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sr += 1;
|
sr += 1;
|
||||||
|
|
Loading…
Reference in New Issue