diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs index 8d25f7007f5..b28067d9dae 100644 --- a/components/layout/css/matching.rs +++ b/components/layout/css/matching.rs @@ -122,7 +122,7 @@ impl<'a> PartialEq for ApplicableDeclarationsC impl<'a> Hash for ApplicableDeclarationsCacheQuery<'a> { fn hash(&self, state: &mut H) { for declaration in self.declarations.iter() { - let ptr: uint = unsafe { + let ptr: usize = unsafe { mem::transmute_copy(declaration) }; ptr.hash(state);