Expand ctypes warnings to warn about *int/*uint
Also ends up fixing one case in libstd
This commit is contained in:
parent
e388a80c23
commit
2cd9d7bc88
6 changed files with 16 additions and 31 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue