1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Resolved failure of initial state setting, which was causing tests sometimes to fail.

This commit is contained in:
Thomas Harte 2016-12-03 16:42:10 -05:00
parent d17751787a
commit 0220d33562

View File

@ -89,7 +89,9 @@ ArrayBuilder::Submission ArrayBuilder::submit()
}
ArrayBuilder::Buffer::Buffer(size_t size, std::function<void(bool is_input, uint8_t *, size_t)> submission_function) :
allocated_data(0), flushed_data(0), submitted_data(0), is_full(false), submission_function_(submission_function)
is_full(false), was_reset(false),
submission_function_(submission_function),
allocated_data(0), flushed_data(0), submitted_data(0)
{
if(!submission_function_)
{