diff --git a/src/lib/vec.rs b/src/lib/vec.rs index 8a20345b864b..40ad520998fc 100644 --- a/src/lib/vec.rs +++ b/src/lib/vec.rs @@ -341,21 +341,21 @@ iter iter2<@T>(v: &[T]) -> (uint, T) { } mod unsafe { - type ivec_repr = {mutable fill: uint, - mutable alloc: uint, - data: u8}; + type vec_repr = {mutable fill: uint, + mutable alloc: uint, + data: u8}; fn from_buf(ptr: *T, elts: uint) -> [T] { ret rustrt::vec_from_buf_shared(ptr, elts); } fn set_len(v: &mutable [T], new_len: uint) { - let repr: **ivec_repr = ::unsafe::reinterpret_cast(addr_of(v)); + let repr: **vec_repr = ::unsafe::reinterpret_cast(addr_of(v)); (**repr).fill = new_len * sys::size_of::(); } fn to_ptr(v: &[T]) -> *T { - let repr: **ivec_repr = ::unsafe::reinterpret_cast(addr_of(v)); + let repr: **vec_repr = ::unsafe::reinterpret_cast(addr_of(v)); ret ::unsafe::reinterpret_cast(addr_of((**repr).data)); } }