Fix a couple of bugs

This commit is contained in:
Carl Lerche
2015-03-09 22:21:10 -07:00
parent b7c7ff5ab6
commit 113bff22c6
2 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
use std::{mem, ptr};
use std::rt::heap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::usize;
const MAX_ALLOC_SIZE: usize = (1 << 32) - 1;
const MAX_ALLOC_SIZE: usize = usize::MAX;
/// Allocates memory to be used by Bufs or Bytes. Allows allocating memory
/// using alternate stratgies than the default Rust heap allocator. Also does