Skip to content

Commit 8637c09

Browse files
committed
stdlib: Make the bound vector an alias in std::deque
Workaround for issue #375
1 parent edf95ef commit 8637c09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/deque.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ fn create[T]() -> t[T] {
3030
fn grow[T](uint nelts, uint lo, vec[cell[T]] elts) -> vec[cell[T]] {
3131
assert (nelts == vec::len[cell[T]](elts));
3232

33+
// FIXME: Making the vector argument an alias is a workaround for
34+
// issue #375
3335
fn fill[T](uint i, uint nelts, uint lo,
34-
vec[cell[T]] old) -> cell[T] {
36+
&vec[cell[T]] old) -> cell[T] {
3537
ret if (i < nelts) {
3638
old.((lo + i) % nelts)
3739
} else {

0 commit comments

Comments
 (0)