From 339ab881a271894b5a320096a641cf6f7a535632 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 29 Mar 2015 12:45:07 +0200 Subject: [PATCH] Use usize in ApplicableDeclarationsCacheQuery's hash method. --- components/layout/css/matching.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);