diff options
author | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
commit | e76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch) | |
tree | 1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-fec/lib/ldpc_encoder_impl.cc | |
parent | 98348e37209aa7daeb96fe5ead815e5b083dc6da (diff) | |
parent | 39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff) |
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG.
Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-fec/lib/ldpc_encoder_impl.cc')
-rw-r--r-- | gr-fec/lib/ldpc_encoder_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-fec/lib/ldpc_encoder_impl.cc b/gr-fec/lib/ldpc_encoder_impl.cc index 9ed72259e6..103cf38379 100644 --- a/gr-fec/lib/ldpc_encoder_impl.cc +++ b/gr-fec/lib/ldpc_encoder_impl.cc @@ -46,9 +46,9 @@ void ldpc_encoder_impl::generic_work(void* inBuffer, void* outBuffer) { const unsigned char* in = (const unsigned char*)inBuffer; unsigned char* out = (unsigned char*)outBuffer; - std::vector<char> inbuf(inputSize); + std::vector<uint8_t> inbuf(inputSize); memcpy(&inbuf[0], in, inputSize); - std::vector<char> coded(d_code.encode(inbuf)); + std::vector<uint8_t> coded(d_code.encode(inbuf)); memcpy(&out[0], &coded[0], coded.size()); } |