X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i;fp=bindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i;h=c71c7d4e79f992fcd76535d90656f7197b6479ce;hb=babe0791d479359b594b3b6ad39b66e60fb26ce1;hp=47a446dec93324157e5b14a092104eade4dd36c0;hpb=486a5fc817de325fdff56209ed52e51c9e902b17;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/native_bt_component_class.i b/bindings/python/bt2/bt2/native_bt_component_class.i index 47a446de..c71c7d4e 100644 --- a/bindings/python/bt2/bt2/native_bt_component_class.i +++ b/bindings/python/bt2/bt2/native_bt_component_class.i @@ -1276,7 +1276,7 @@ bt_py3_component_class_query( * (PyLong) containing the address of a BT value object (new * reference). */ - *result = (void *) PyLong_AsUnsignedLongLong(py_results_addr); + *result = PyLong_AsVoidPtr(py_results_addr); BT_ASSERT(!PyErr_Occurred()); BT_ASSERT(*result); goto end; @@ -1519,9 +1519,7 @@ bt_py3_component_class_message_iterator_next( * (PyLong) containing the address of a native message * object (which is now ours). */ - msgs[0] = - (const bt_message *) PyLong_AsUnsignedLongLong( - py_method_result); + msgs[0] = PyLong_AsVoidPtr(py_method_result); *count = 1; /* Clear potential overflow error; should never happen */