]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/sip128.rs
Rollup merge of #69340 - Centril:self-ctor-normalize, r=nikomatsakis
[rust.git] / src / librustc_data_structures / sip128.rs
index af0e9f79fe1201cf8c9e554e576f9cf722c791eb..beb28dd072058fd4a74d0c5d28d71b3196f9b91f 100644 (file)
@@ -274,7 +274,7 @@ fn write(&mut self, msg: &[u8]) {
 
         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;