From 14357ecf41b06520f7f006c2fb1e4a8f833f0b0c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 28 Oct 2003 07:29:57 +0000 Subject: [PATCH] fix warnings --- stepmania/src/arch/Sound/ALSA9Helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/Sound/ALSA9Helpers.cpp b/stepmania/src/arch/Sound/ALSA9Helpers.cpp index 32cea0b670..36efe74e1d 100644 --- a/stepmania/src/arch/Sound/ALSA9Helpers.cpp +++ b/stepmania/src/arch/Sound/ALSA9Helpers.cpp @@ -218,9 +218,9 @@ int Alsa9Buf::GetNumFramesToFill( int writeahead ) return 0; } - const snd_pcm_sframes_t filled_frames = max( 0, total_frames - avail_frames ); + const snd_pcm_sframes_t filled_frames = max( 0l, total_frames - avail_frames ); - snd_pcm_sframes_t frames_to_fill = clamp( writeahead - filled_frames, 0, (int)writeahead ); + snd_pcm_sframes_t frames_to_fill = clamp( writeahead - filled_frames, 0l, (snd_pcm_sframes_t)writeahead ); frames_to_fill -= frames_to_fill % xfer_align; return frames_to_fill;