summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-26 17:48:49 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commitf29e6126e0fce0dff8dd6667fa93e2511c004f13 (patch)
treebe005fa6d1e1a7d21785cf186c039b76de56e679 /gnuradio-runtime/python
parent28ca97597d0780850531be099abfed9c00b0a0ec (diff)
pmt: replace "long" with int64_t in python bindings
pygccxml seems to replace int64_t and uint64_t with long and unsigned long. This causes a mismatch in the overload on 32b systems Fixes #3408
Diffstat (limited to 'gnuradio-runtime/python')
-rw-r--r--gnuradio-runtime/python/pmt/bindings/pmt_python.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnuradio-runtime/python/pmt/bindings/pmt_python.cc b/gnuradio-runtime/python/pmt/bindings/pmt_python.cc
index eb9b0e1a43..995b6fdd84 100644
--- a/gnuradio-runtime/python/pmt/bindings/pmt_python.cc
+++ b/gnuradio-runtime/python/pmt/bindings/pmt_python.cc
@@ -770,7 +770,7 @@ void bind_pmt(py::module& m)
m.def("init_u64vector",
(pmt::pmt_t(*)(
- size_t, std::vector<unsigned long, std::allocator<unsigned long>> const&)) &
+ size_t, std::vector<uint64_t, std::allocator<uint64_t>> const&)) &
::pmt::init_u64vector,
py::arg("k"),
py::arg("data"),
@@ -785,7 +785,7 @@ void bind_pmt(py::module& m)
m.def("init_s64vector",
- (pmt::pmt_t(*)(size_t, std::vector<long, std::allocator<long>> const&)) &
+ (pmt::pmt_t(*)(size_t, std::vector<int64_t, std::allocator<int64_t>> const&)) &
::pmt::init_s64vector,
py::arg("k"),
py::arg("data"),
@@ -1174,7 +1174,7 @@ void bind_pmt(py::module& m)
m.def("u64vector_elements",
- (std::vector<unsigned long, std::allocator<unsigned long>> const (*)(
+ (std::vector<uint64_t, std::allocator<uint64_t>> const (*)(
pmt::pmt_t)) &
::pmt::u64vector_elements,
py::arg("v"),
@@ -1182,7 +1182,7 @@ void bind_pmt(py::module& m)
m.def("s64vector_elements",
- (std::vector<long, std::allocator<long>> const (*)(pmt::pmt_t)) &
+ (std::vector<int64_t, std::allocator<int64_t>> const (*)(pmt::pmt_t)) &
::pmt::s64vector_elements,
py::arg("v"),
D(s64vector_elements, 1));