Browse Source

fix a bug in udivmoddi4

Jorge Aparicio 8 years ago
parent
commit
f3eb08a96d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/udiv.rs

+ 1 - 1
src/udiv.rs

@@ -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;