summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui/bindings/number_sink_python.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/python/qtgui/bindings/number_sink_python.cc')
-rw-r--r--gr-qtgui/python/qtgui/bindings/number_sink_python.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-qtgui/python/qtgui/bindings/number_sink_python.cc b/gr-qtgui/python/qtgui/bindings/number_sink_python.cc
index e753d333a4..042069aded 100644
--- a/gr-qtgui/python/qtgui/bindings/number_sink_python.cc
+++ b/gr-qtgui/python/qtgui/bindings/number_sink_python.cc
@@ -64,10 +64,12 @@ void bind_number_sink(py::module& m)
// D(number_sink,pyqwidget)
// )
// For the sip conversion to python to work, the widget object
- // needs to be explicitly converted to Long
+ // needs to be explicitly converted to long long.
.def(
"pyqwidget",
- [](std::shared_ptr<number_sink> p) { return PyLong_AsLong(p->pyqwidget()); },
+ [](std::shared_ptr<number_sink> p) {
+ return PyLong_AsLongLong(p->pyqwidget());
+ },
D(number_sink, pyqwidget))