From ce3f369047108e8cf28f16cd75f2301e61e6f019 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 15 Mar 2012 17:16:16 -0700 Subject: [PATCH] Change ctypes::intptr_t to int --- src/libcore/ctypes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/ctypes.rs b/src/libcore/ctypes.rs index 009ce986631c..7f79c590b62f 100644 --- a/src/libcore/ctypes.rs +++ b/src/libcore/ctypes.rs @@ -2,7 +2,7 @@ /* FIXME: Add a test that uses some native code to verify these sizes, -which are not obviously correct for all potential platforms. +which are not obviously correct for all potential platforms. (see Issue #1990) */ export c_char, c_int, c_uint, long, longlong, unsigned, ulong, ulonglong; @@ -44,7 +44,7 @@ type ulonglong = u64; A signed integer with the same size as a pointer. This is guaranteed to always be the same type as a Rust `int`. "] -type intptr_t = uint; // FIXME: int +type intptr_t = int; #[doc = " An unsigned integer with the same size as a pointer. This is