From fcaee85ced65fae0aad4249e19ec85cbffd4d21c Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Sun, 20 Jul 2014 14:05:28 +0100 Subject: [PATCH] rlibc: fix bug in `memcmp()` --- src/librlibc/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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; } -- GitLab