repair more hash functions

This commit is contained in:
Niko Matsakis 2011-12-07 07:21:07 -08:00
parent 03a6e54212
commit 6c95e400d8
3 changed files with 17 additions and 17 deletions

View file

@ -199,7 +199,7 @@ fn hash_ty(&&t: @ty) -> uint {
}
fn hash_def_id(&&id: def_id) -> uint {
id.crate as uint << 16u + (id.node as uint)
(id.crate as uint << 16u) + (id.node as uint)
}
fn eq_def_id(&&a: def_id, &&b: def_id) -> bool {