Fix c string conversion in python 2
This commit is contained in:
parent
9394dc591e
commit
1301394264
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue