diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-12-14 07:27:38 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-12-14 13:26:45 -0800 |
commit | 373fec2fb177c50b40733445633a10b01fe62cc5 (patch) | |
tree | 6b5a4fdd025b08a66ad4d673d34137ef330e1125 /host/lib/utils/ihex.cpp | |
parent | 87860fc3226c8915cb45a4fc39d5e64bf667470d (diff) | |
download | uhd-373fec2fb177c50b40733445633a10b01fe62cc5.tar.gz uhd-373fec2fb177c50b40733445633a10b01fe62cc5.tar.bz2 uhd-373fec2fb177c50b40733445633a10b01fe62cc5.zip |
ihex: Windows fixes
Diffstat (limited to 'host/lib/utils/ihex.cpp')
-rw-r--r-- | host/lib/utils/ihex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/utils/ihex.cpp b/host/lib/utils/ihex.cpp index bb9b49b32..a29ac3e72 100644 --- a/host/lib/utils/ihex.cpp +++ b/host/lib/utils/ihex.cpp @@ -213,7 +213,7 @@ void ihex_reader::to_bin_file(const std::string &bin_filename) // We need a functor for the cast, a lambda would be perfect... int _vector_writer_callback( - std::vector<boost::uint8_t> vector, + std::vector<boost::uint8_t>& vector, unsigned char *buff, boost::uint16_t len ) { @@ -229,7 +229,7 @@ std::vector<boost::uint8_t> ihex_reader::to_vector(const size_t size_estimate) std::vector<boost::uint8_t> buf; buf.reserve(size_estimate == 0 ? DEFAULT_SIZE_ESTIMATE : size_estimate); - this->read(boost::bind(&_vector_writer_callback, buf, _3, _4)); + this->read(boost::bind(&_vector_writer_callback, boost::ref(buf), _3, _4)); return buf; } |