From aaa60dab121f67ab499a789cb226ffe804fed80f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 21 Jul 2017 21:21:01 -0400 Subject: [PATCH] Fixed signedness of index. --- Components/AY38910/AY38910.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/AY38910/AY38910.cpp b/Components/AY38910/AY38910.cpp index 35d528d0e..22769b805 100644 --- a/Components/AY38910/AY38910.cpp +++ b/Components/AY38910/AY38910.cpp @@ -76,7 +76,7 @@ void AY38910::set_clock_rate(double clock_rate) { } void AY38910::get_samples(unsigned int number_of_samples, int16_t *target) { - int c = 0; + unsigned int c = 0; while((master_divider_&7) && c < number_of_samples) { target[c] = output_volume_; master_divider_++;