From 869e9017ebfbb222503c503a1b319b5a3e81f74b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 10 May 2011 17:49:53 -0700 Subject: [PATCH] rustc: Create mutable vectors in macos_OS.rs. Should put out Darwin tinderbox. --- src/lib/macos_OS.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/macos_OS.rs b/src/lib/macos_OS.rs index 0970da72b94..700ac17c7b6 100644 --- a/src/lib/macos_OS.rs +++ b/src/lib/macos_OS.rs @@ -62,7 +62,7 @@ fn dylib_filename(str base) -> str { } fn pipe() -> tup(int, int) { - let vec[mutable int] fds = vec(0, 0); + let vec[mutable int] fds = vec(mutable 0, 0); assert (OS.libc.pipe(Vec.buf[mutable int](fds)) == 0); ret tup(fds.(0), fds.(1)); } @@ -72,7 +72,7 @@ fn fd_FILE(int fd) -> libc.FILE { } fn waitpid(int pid) -> int { - let vec[mutable int] status = vec(0); + let vec[mutable int] status = vec(mutable 0); assert (OS.libc.waitpid(pid, Vec.buf[mutable int](status), 0) != -1); ret status.(0); }