mic: fix sign comparison warnings

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson 2016-11-03 13:13:13 -06:00
parent 8da9f28157
commit 630d12d963
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ Microphone::findThreshold (thresholdContext* ctx, unsigned int threshold,
void void
Microphone::printGraph (thresholdContext* ctx) { Microphone::printGraph (thresholdContext* ctx) {
for (int i = 0; i < ctx->runningAverage; i++) for (unsigned int i = 0; i < ctx->runningAverage; i++)
std::cout << "."; std::cout << ".";
std::cout << std::endl; std::cout << std::endl;
} }

View File

@ -29,7 +29,7 @@
struct thresholdContext { struct thresholdContext {
long averageReading; long averageReading;
long runningAverage; unsigned long runningAverage;
int averagedOver; int averagedOver;
}; };