1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-03-21 09:29:41 +00:00

Separates asserts.

This commit is contained in:
Thomas Harte 2020-09-15 23:24:06 -04:00
parent 061288f5a7
commit b1aefbfe85

View File

@ -427,7 +427,8 @@ void CRT::set_immediate_default_phase(float phase) {
void CRT::output_data(int number_of_cycles, size_t number_of_samples) {
#ifndef NDEBUG
assert(number_of_samples > 0 && number_of_samples <= allocated_data_length_);
assert(number_of_samples > 0);
assert(number_of_samples <= allocated_data_length_);
allocated_data_length_ = std::numeric_limits<size_t>::min();
#endif
scan_target_->end_data(number_of_samples);