about summary refs log tree commit diff
path: root/src/librustc/util/nodemap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/util/nodemap.rs')
-rw-r--r--src/librustc/util/nodemap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/util/nodemap.rs b/src/librustc/util/nodemap.rs
index b15da7dab3e..0f69aa941a3 100644
--- a/src/librustc/util/nodemap.rs
+++ b/src/librustc/util/nodemap.rs
@@ -57,7 +57,7 @@ impl Hasher for FnvHasher {
         let FnvHasher(mut hash) = *self;
         for byte in bytes {
             hash = hash ^ (*byte as u64);
-            hash = hash * 0x100000001b3;
+            hash = hash.wrapping_mul(0x100000001b3);
         }
         *self = FnvHasher(hash);
     }