Stop using int/uint in net_traits.

This commit is contained in:
Ms2ger 2015-04-06 15:57:35 +02:00
parent f22d920b4d
commit b50b21d1da
5 changed files with 17 additions and 13 deletions

View file

@ -47,7 +47,7 @@ pub fn load_from_memory(buffer: &[u8]) -> Option<Image> {
} else {
// For non-png images, we use stb_image
// Can't remember why we do this. Maybe it's what cairo wants
static FORCE_DEPTH: uint = 4;
static FORCE_DEPTH: usize = 4;
match stb_image2::load_from_memory_with_depth(buffer, FORCE_DEPTH, true) {
stb_image2::LoadResult::ImageU8(mut image) => {