Fix up some integer types

This commit is contained in:
Sebastian Dröge 2017-08-11 00:41:36 +03:00
parent 885267ebee
commit 21c4173051
2 changed files with 6 additions and 6 deletions

View file

@ -78,12 +78,12 @@ impl AudioFormatInfo {
from_glib(self.0.endianness)
}
pub fn width(&self) -> i32 {
self.0.width
pub fn width(&self) -> u32 {
self.0.width as u32
}
pub fn depth(&self) -> i32 {
self.0.depth
pub fn depth(&self) -> u32 {
self.0.depth as u32
}
pub fn unpack_format(&self) -> ::AudioFormat {

View file

@ -204,11 +204,11 @@ impl AudioInfo {
(self.format_info().depth() as u32) >> 3
}
pub fn depth(&self) -> i32 {
pub fn depth(&self) -> u32 {
self.format_info().depth()
}
pub fn width(&self) -> i32 {
pub fn width(&self) -> u32 {
self.format_info().width()
}