about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-02-27 14:38:06 +0900
committerGitHub <noreply@github.com>2020-02-27 14:38:06 +0900
commitd4700a83ce1721b94f2aa3ce070cf86c82cb9979 (patch)
tree871b191f3bb40f62f2864cab6a6a8ce5fdac791b /src/libcore
parent4cc0295be5f9dc7089d5b762dfeaf3754b3623f2 (diff)
parent1a6b930eebe39aa11d948815b9cd9b792a6de8b4 (diff)
downloadrust-d4700a83ce1721b94f2aa3ce070cf86c82cb9979.tar.gz
rust-d4700a83ce1721b94f2aa3ce070cf86c82cb9979.zip
Rollup merge of #69479 - matthiaskrgr:op_pred, r=Dylan-DPC
clarify operator precedence
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/hash/sip.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs
index c4fbd9dbada..aa50e7cdf57 100644
--- a/src/libcore/hash/sip.rs
+++ b/src/libcore/hash/sip.rs
@@ -304,7 +304,7 @@ impl<S: Sip> super::Hasher for Hasher<S> {
 
         if self.ntail != 0 {
             needed = 8 - self.ntail;
-            self.tail |= unsafe { u8to64_le(msg, 0, cmp::min(length, needed)) } << 8 * self.ntail;
+            self.tail |= unsafe { u8to64_le(msg, 0, cmp::min(length, needed)) } << (8 * self.ntail);
             if length < needed {
                 self.ntail += length;
                 return;