Add explicit cast from size_t to u64.

Fixes compile error on non-64-bit targets.
This commit is contained in:
Matt Brubeck 2014-07-24 12:41:13 -07:00
parent a14d3b2102
commit feae7d0b5d
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ fn get_jemalloc_stat(name: &'static str) -> Option<u64> {
unsafe {
rv = je_mallctl(c_name.unwrap(), oldp, &mut oldlen, mut_null(), 0);
}
if rv == 0 { Some(old) } else { None }
if rv == 0 { Some(old as u64) } else { None }
}
// Like std::macros::try!, but for Option<>.

@ -1 +1 @@
Subproject commit 00caade726945dd8a7bbe81d4f8e77c0177d8ee3
Subproject commit 8828119c5d789452685c82fa71a1dec7f6bd4b0e