From 2cd9d7bc88dc4e7c2a1fd25325eb95ff781395b7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 11 Jul 2013 19:40:53 -0700 Subject: Expand ctypes warnings to warn about *int/*uint Also ends up fixing one case in libstd --- src/libstd/unstable/global.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/unstable/global.rs b/src/libstd/unstable/global.rs index 285a8114cc2..af28879f739 100644 --- a/src/libstd/unstable/global.rs +++ b/src/libstd/unstable/global.rs @@ -28,7 +28,7 @@ avoid hitting the mutex. use cast::{transmute}; use clone::Clone; use kinds::Send; -use libc::{c_void}; +use libc::{c_void, intptr_t}; use option::{Option, Some, None}; use ops::Drop; use unstable::sync::{Exclusive, exclusive}; @@ -228,7 +228,7 @@ fn key_ptr(key: GlobalDataKey) -> uint { } extern { - fn rust_get_global_data_ptr() -> *mut int; + fn rust_get_global_data_ptr() -> *mut intptr_t; } #[test] -- cgit 1.4.1-3-g733a5