From f541986333bf4ea108a1c244c80e9e109531d49e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 8 Apr 2018 18:50:42 -0400 Subject: [PATCH] Switches to more normative preincrement. --- Components/6560/6560.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/6560/6560.cpp b/Components/6560/6560.cpp index 8790d50bb..73a06b3f4 100644 --- a/Components/6560/6560.cpp +++ b/Components/6560/6560.cpp @@ -106,7 +106,7 @@ static uint8_t noise_pattern[] = { // means every second cycle, etc. void AudioGenerator::get_samples(std::size_t number_of_samples, int16_t *target) { - for(unsigned int c = 0; c < number_of_samples; c++) { + for(unsigned int c = 0; c < number_of_samples; ++c) { update(0, 2, shift); update(1, 1, shift); update(2, 0, shift); @@ -124,7 +124,7 @@ void AudioGenerator::get_samples(std::size_t number_of_samples, int16_t *target) } void AudioGenerator::skip_samples(std::size_t number_of_samples) { - for(unsigned int c = 0; c < number_of_samples; c++) { + for(unsigned int c = 0; c < number_of_samples; ++c) { update(0, 2, shift); update(1, 1, shift); update(2, 0, shift);