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]
/
python-plugin-provider
/
python-plugin-provider.c
diff --git
a/python-plugin-provider/python-plugin-provider.c
b/python-plugin-provider/python-plugin-provider.c
index 631a971b1287eeade67e59d63be665c6098dfdb1..d32ff8290e929fbe6f066e4d28b2d31a94599092 100644
(file)
--- a/
python-plugin-provider/python-plugin-provider.c
+++ b/
python-plugin-provider/python-plugin-provider.c
@@
-338,8
+338,7
@@
bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info)
PyList_GetItem(py_comp_class_addrs, i);
BT_ASSERT(py_comp_class_addr);
if (PyLong_Check(py_comp_class_addr)) {
PyList_GetItem(py_comp_class_addrs, i);
BT_ASSERT(py_comp_class_addr);
if (PyLong_Check(py_comp_class_addr)) {
- comp_class = (bt_component_class *)
- PyLong_AsUnsignedLongLong(py_comp_class_addr);
+ comp_class = PyLong_AsVoidPtr(py_comp_class_addr);
} else {
BT_LOGW("Component class address is not an integer in Python plugin info object: "
"py-plugin-info-addr=%p, index=%zu",
} else {
BT_LOGW("Component class address is not an integer in Python plugin info object: "
"py-plugin-info-addr=%p, index=%zu",
This page took
0.025553 seconds
and
4
git commands to generate.