fix warnings

This commit is contained in:
Glenn Maynard
2003-10-28 07:29:57 +00:00
parent 0e9fb527c1
commit 14357ecf41
+2 -2
View File
@@ -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;