projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: bt2: int-to-pointer-cast warnings in SWIG utils functions
[babeltrace.git]
/
bindings
/
python
/
bt2
/
bt2
/
native_bt_component_class.i
diff --git
a/bindings/python/bt2/bt2/native_bt_component_class.i
b/bindings/python/bt2/bt2/native_bt_component_class.i
index 47a446dec93324157e5b14a092104eade4dd36c0..c71c7d4e79f992fcd76535d90656f7197b6479ce 100644
(file)
--- 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).
*/
* (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;
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).
*/
* (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 */
*count = 1;
/* Clear potential overflow error; should never happen */
This page took
0.02813 seconds
and
4
git commands to generate.