fix a bug in udivmoddi4

This commit is contained in:
Jorge Aparicio 2016-08-13 18:45:00 -05:00
parent 69376af183
commit f3eb08a96d
1 changed files with 1 additions and 1 deletions

View File

@ -186,8 +186,8 @@ pub extern "C" fn __udivmoddi4(n: u64, d: u64, rem: Option<&mut u64>) -> u64 {
if sr > u32::bits() - 1 {
if let Some(rem) = rem {
*rem = n;
return 0;
}
return 0;
}
sr += 1;