Use explicitly sized integers for the sample rates

This commit is contained in:
Robert Straw
2015-01-12 12:27:10 -06:00
parent b7220641c1
commit 88d2be4fc0
+2 -2
View File
@@ -423,8 +423,8 @@ impl Drop for AudioCVT {
}
impl AudioCVT {
pub fn new(src_format: ll::SDL_AudioFormat, src_channels: u8, src_rate: int,
dst_format: ll::SDL_AudioFormat, dst_channels: u8, dst_rate: int) -> SdlResult<AudioCVT> {
pub fn new(src_format: ll::SDL_AudioFormat, src_channels: u8, src_rate: i32,
dst_format: ll::SDL_AudioFormat, dst_channels: u8, dst_rate: i32) -> SdlResult<AudioCVT> {
use std::mem;
unsafe {