about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorYoung-il Choi <duddlf.choi@samsung.com>2013-03-29 15:46:13 +0900
committerYoung-il Choi <duddlf.choi@samsung.com>2013-03-29 15:46:13 +0900
commite6f2d7a48cbb5df93ea5616467591e6e5f6697a3 (patch)
tree7cbeff3583e023e3334612ef8c7ec136788a253f /src/libcore
parentf7a2371c176663d59062ec5158f39faecba45768 (diff)
downloadrust-e6f2d7a48cbb5df93ea5616467591e6e5f6697a3.tar.gz
rust-e6f2d7a48cbb5df93ea5616467591e6e5f6697a3.zip
libcore: language change minor fix for ARM & MIPS
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/rt/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/rt/context.rs b/src/libcore/rt/context.rs
index 1a5d99c3404..224f28a0329 100644
--- a/src/libcore/rt/context.rs
+++ b/src/libcore/rt/context.rs
@@ -160,7 +160,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp:
 type Registers = [uint, ..32];
 
 #[cfg(target_arch = "arm")]
-fn new_regs() -> ~Registers { ~[0, .. 32] }
+fn new_regs() -> ~Registers { ~([0, .. 32]) }
 
 #[cfg(target_arch = "arm")]
 fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp: *mut uint) {
@@ -178,7 +178,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp:
 type Registers = [uint, ..32];
 
 #[cfg(target_arch = "mips")]
-fn new_regs() -> ~Registers { ~[0, .. 32] }
+fn new_regs() -> ~Registers { ~([0, .. 32]) }
 
 #[cfg(target_arch = "mips")]
 fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp: *mut uint) {