From 70ef61d74bd884eae6191ca1bb5b18275cf431de Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 1 Aug 2003 22:12:28 +0000 Subject: [PATCH] Removed the last of the integer comparison warnings --- stepmania/src/RageSound.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index ffcdc36f4e..627a551693 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -61,7 +61,7 @@ const int samplesize = 2 * channels; /* 16-bit */ const int internal_buffer_size = 1024*16; /* The amount of data to read from SDL_sound at once. */ -const int read_block_size = 1024; +const unsigned read_block_size = 1024; /* The number of samples we should keep pos_map data for. This being too high * is mostly harmless; the data is small. */ @@ -280,7 +280,7 @@ void RageSound::RateChange(char *buf, int &cnt, * rounding error. */ Sint16 samps[16]; - ASSERT(speed_input_samples <= sizeof(samps)/sizeof(*samps)); + ASSERT(size_t(speed_input_samples) <= sizeof(samps)/sizeof(*samps)); int s; for(s = 0; s < speed_input_samples; ++s) { samps[s] = *in; in += channels; @@ -322,7 +322,7 @@ int RageSound::FillBuf(int bytes) break; /* full */ char inbuf[10240]; - int read_size = read_block_size; + unsigned read_size = read_block_size; int cnt = 0; if(speed_input_samples != speed_output_samples)