diff --git a/src/npyffi/types.rs b/src/npyffi/types.rs index 68df9c52f..eb03b801b 100644 --- a/src/npyffi/types.rs +++ b/src/npyffi/types.rs @@ -19,15 +19,15 @@ pub type npy_long = c_long; pub type npy_float = f32; pub type npy_double = f64; pub type npy_hash_t = Py_hash_t; -pub type npy_int64 = c_long; -pub type npy_uint64 = c_ulong; -pub type npy_int32 = c_int; -pub type npy_uint32 = c_uint; +pub type npy_int64 = i64; +pub type npy_uint64 = u64; +pub type npy_int32 = i32; +pub type npy_uint32 = u32; pub type npy_ucs4 = c_uint; -pub type npy_int16 = c_short; -pub type npy_uint16 = c_ushort; -pub type npy_int8 = c_char; -pub type npy_uint8 = c_uchar; +pub type npy_int16 = i16; +pub type npy_uint16 = u16; +pub type npy_int8 = i8; +pub type npy_uint8 = u8; pub type npy_float64 = f64; pub type npy_complex128 = npy_cdouble; pub type npy_float32 = f32;