1
0
Fork 0

use arch::uintptr_t instead of libc::uintptr_t

This commit is contained in:
edef 2014-12-24 06:53:36 +01:00
parent 24b7aee96f
commit 3957ac99ae
1 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,3 @@
use libc;
use std::mem::transmute; use std::mem::transmute;
use std::raw; use std::raw;
use fn_box::FnBox; use fn_box::FnBox;
@ -22,11 +21,11 @@ impl Context {
Context { Context {
regs: arch::initialise_call_frame(&mut stack, regs: arch::initialise_call_frame(&mut stack,
init_ctx::<T, Args, Result> as libc::uintptr_t, init_ctx::<T, Args, Result> as arch::uintptr_t,
&[init as libc::uintptr_t, &[init as arch::uintptr_t,
data as libc::uintptr_t, data as arch::uintptr_t,
f.data as libc::uintptr_t, f.data as arch::uintptr_t,
f.vtable as libc::uintptr_t]), f.vtable as arch::uintptr_t]),
stack: stack stack: stack
} }
} }