提交 fcaee85c 编写于 作者: I Ilya Dmitrichenko 提交者: Alex Crichton

rlibc: fix bug in `memcmp()`

上级 a4915515
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册