Skip to content

Commit f3eb08a

Browse files
author
Jorge Aparicio
committed
fix a bug in udivmoddi4
1 parent 69376af commit f3eb08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/udiv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ pub extern "C" fn __udivmoddi4(n: u64, d: u64, rem: Option<&mut u64>) -> u64 {
186186
if sr > u32::bits() - 1 {
187187
if let Some(rem) = rem {
188188
*rem = n;
189-
return 0;
190189
}
190+
return 0;
191191
}
192192

193193
sr += 1;

0 commit comments

Comments
 (0)