From dde41869ce2ef1d66e753fc8b4efc7d917c77875 Mon Sep 17 00:00:00 2001 From: Haitao Li Date: Mon, 16 Jan 2012 18:21:01 +0800 Subject: Use ctypes in native function declarations --- src/libcore/ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/ptr.rs') diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 8ce0730df4f..a7eb33daeaf 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -6,7 +6,7 @@ Unsafe pointer utility functions #[abi = "rust-intrinsic"] native mod rusti { fn addr_of(val: T) -> *T; - fn ptr_offset(ptr: *T, count: uint) -> *T; + fn ptr_offset(ptr: *T, count: ctypes::uintptr_t) -> *T; } /* -- cgit 1.4.1-3-g733a5