diff options
author | Josh Blum | 2012-10-13 13:22:18 -0700 |
---|---|---|
committer | Josh Blum | 2012-10-13 13:22:18 -0700 |
commit | 8354c9c4c92687904cedae0b0feb702c2d7e8408 (patch) | |
tree | 4c063baf0dfa3a06a6f090b2346b593babaa2efb /lib/gras_impl/input_buffer_queues.hpp | |
parent | f9c854d3cdd0a9337b41842d15a13d6df4ece408 (diff) | |
download | sandhi-8354c9c4c92687904cedae0b0feb702c2d7e8408.tar.gz sandhi-8354c9c4c92687904cedae0b0feb702c2d7e8408.tar.bz2 sandhi-8354c9c4c92687904cedae0b0feb702c2d7e8408.zip |
lots of mini tweaks for QA passing, WIP...
Diffstat (limited to 'lib/gras_impl/input_buffer_queues.hpp')
-rw-r--r-- | lib/gras_impl/input_buffer_queues.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gras_impl/input_buffer_queues.hpp b/lib/gras_impl/input_buffer_queues.hpp index a3ca1dc..3666330 100644 --- a/lib/gras_impl/input_buffer_queues.hpp +++ b/lib/gras_impl/input_buffer_queues.hpp @@ -152,6 +152,7 @@ GRAS_FORCE_INLINE void InputBufferQueues::init( _history_bytes[i] + _reserve_bytes[i], _reserve_bytes[i] ); + _reserve_bytes[i] = 1; //post bytes are the desired buffer size to escape the edge case _post_bytes[i] = std::max( @@ -202,7 +203,8 @@ GRAS_FORCE_INLINE SBuffer InputBufferQueues::front(const size_t i, const bool co //same buffer, different offset and length SBuffer buff = front; - if (conserve_history) buff.length -= _history_bytes[i]; + //if (conserve_history) ASSERT(buff.length >= _history_bytes[i]); + //if (conserve_history) buff.length -= _history_bytes[i]; //set the flag that this buffer *might* be inlined as an output buffer potential_inline = unique and (buff.length == front.length); |