提交 c2baaa8d 编写于 作者: C Corey Richardson

fix warnings

上级 00eef96a
......@@ -31,9 +31,7 @@ fn new(size: uint) -> StackSegment {
/// Point one word beyond the high end of the allocated stack
fn end(&self) -> *uint {
unsafe {
vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
}
vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
}
}
......
......@@ -362,7 +362,7 @@ fn test_slice_to_uv_buf() {
/// Borrow a slice to a Buf
pub fn slice_to_uv_buf(v: &[u8]) -> Buf {
let data = unsafe { vec::raw::to_ptr(v) };
let data = vec::raw::to_ptr(v);
unsafe { uvll::buf_init(data, v.len()) }
}
......
......@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[cfg(stage0)]
use core;
#[deriving(Eq, IterBytes)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册