mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Add explicit cast from size_t to u64.
Fixes compile error on non-64-bit targets.
This commit is contained in:
parent
a14d3b2102
commit
feae7d0b5d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue