diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/librlibc/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librlibc/lib.rs b/src/librlibc/lib.rs index cb27596c98c..3e45964cd12 100644 --- a/src/librlibc/lib.rs +++ b/src/librlibc/lib.rs @@ -95,7 +95,7 @@ pub unsafe extern "C" fn memcmp(s1: *const u8, s2: *const u8, n: uint) -> i32 { let a = *offset(s1, i as int); let b = *offset(s2, i as int); if a != b { - return (a - b) as i32 + return a as i32 - b as i32 } i += 1; } |
