diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-07-11 19:40:53 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-07-11 19:45:25 -0700 |
| commit | 2cd9d7bc88dc4e7c2a1fd25325eb95ff781395b7 (patch) | |
| tree | ac975054ab187f55981879d719de4f423dcbd9f4 /src/libstd | |
| parent | e388a80c234d628c4d1fab77dc3e3f2c04cbefc5 (diff) | |
| download | rust-2cd9d7bc88dc4e7c2a1fd25325eb95ff781395b7.tar.gz rust-2cd9d7bc88dc4e7c2a1fd25325eb95ff781395b7.zip | |
Expand ctypes warnings to warn about *int/*uint
Also ends up fixing one case in libstd
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/unstable/global.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<T:Send>(key: GlobalDataKey<T>) -> uint { } extern { - fn rust_get_global_data_ptr() -> *mut int; + fn rust_get_global_data_ptr() -> *mut intptr_t; } #[test] |
