Skip to content

Commit f8c44d9

Browse files
Elly Jonesbrson
Elly Jones
authored andcommitted
---
yaml --- r: 6141 b: refs/heads/master c: b0278f5 h: refs/heads/master i: 6139: a034041 v: v3
1 parent dfaa3f2 commit f8c44d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 230b279b8217f2271c23eeb3d8e4e2e0b1af1fa9
2+
refs/heads/master: b0278f5315be8410d8fa93d83cb0de0ea0af1ed4

trunk/src/lib/vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ mod unsafe {
796796
modifing its buffers, so it is up to the caller to ensure that
797797
the vector is actually the specified size.
798798
*/
799-
unsafe fn set_len<T>(&v: [T], new_len: uint) {
799+
unsafe fn set_len<T>(&v: [mutable? T], new_len: uint) {
800800
let repr: **vec_repr = ::unsafe::reinterpret_cast(addr_of(v));
801801
(**repr).fill = new_len * sys::size_of::<T>();
802802
}
@@ -812,7 +812,7 @@ mod unsafe {
812812
Modifying the vector may cause its buffer to be reallocated, which
813813
would also make any pointers to it invalid.
814814
*/
815-
unsafe fn to_ptr<T>(v: [T]) -> *T {
815+
unsafe fn to_ptr<T>(v: [mutable? T]) -> *T {
816816
let repr: **vec_repr = ::unsafe::reinterpret_cast(addr_of(v));
817817
ret ::unsafe::reinterpret_cast(addr_of((**repr).data));
818818
}

0 commit comments

Comments
 (0)