diff options
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/args.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/stack.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/args.rs b/src/libstd/rt/args.rs index 85cdb9fc941..cd950471286 100644 --- a/src/libstd/rt/args.rs +++ b/src/libstd/rt/args.rs @@ -114,7 +114,7 @@ mod imp { unsafe fn load_argc_and_argv(argc: int, argv: **u8) -> ~[~str] { let mut args = ~[]; for uint::range(0, argc as uint) |i| { - args.push(str::raw::from_c_str(*(argv as **libc::c_char).offset(i))); + args.push(str::raw::from_c_str(*(argv as **libc::c_char).offset(i as int))); } return args; } diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index fbb516b2df4..a1269968921 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -44,7 +44,7 @@ impl StackSegment { /// Point one word beyond the high end of the allocated stack pub fn end(&self) -> *uint { - vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint + vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint } } |
