Fix c string conversion in python 2

This commit is contained in:
konstin 2018-06-15 15:57:59 +02:00
parent 9394dc591e
commit 1301394264
1 changed files with 3 additions and 3 deletions

View File

@ -295,15 +295,15 @@ pub unsafe fn PyMapping_DelItem(o : *mut PyObject, key : *mut PyObject) -> c_int
#[inline] #[inline]
pub unsafe fn PyMapping_Keys(o : *mut PyObject) -> *mut PyObject { pub unsafe fn PyMapping_Keys(o : *mut PyObject) -> *mut PyObject {
PyObject_CallMethod(o, "keys\0".as_ptr() as *mut u8, ptr::null_mut()) PyObject_CallMethod(o, "keys\0".as_ptr() as *mut c_char, ptr::null_mut())
} }
#[inline] #[inline]
pub unsafe fn PyMapping_Values(o : *mut PyObject) -> *mut PyObject { pub unsafe fn PyMapping_Values(o : *mut PyObject) -> *mut PyObject {
PyObject_CallMethod(o, "values\0".as_ptr() as *mut u8, ptr::null_mut()) PyObject_CallMethod(o, "values\0".as_ptr() as *mut c_char, ptr::null_mut())
} }
#[inline] #[inline]
pub unsafe fn PyMapping_Items(o : *mut PyObject) -> *mut PyObject { pub unsafe fn PyMapping_Items(o : *mut PyObject) -> *mut PyObject {
PyObject_CallMethod(o, "items\0".as_ptr() as *mut u8, ptr::null_mut()) PyObject_CallMethod(o, "items\0".as_ptr() as *mut c_char, ptr::null_mut())
} }