diff --git a/compiler-rt/lib/scudo/standalone/stack_depot.h b/compiler-rt/lib/scudo/standalone/stack_depot.h index c4d9b277a1c58b..f2f4d95977958e 100644 --- a/compiler-rt/lib/scudo/standalone/stack_depot.h +++ b/compiler-rt/lib/scudo/standalone/stack_depot.h @@ -121,7 +121,7 @@ class StackDepot { u64 HashWithTagBit = (u64(Hash) << 1) | 1; if ((Entry & 0x1ffffffff) != HashWithTagBit) return false; - u32 Size = Entry >> 33; + u32 Size = u32(Entry >> 33); if (Size >= RingSize) return false; *RingPosPtr = (RingPos + 1) & RingMask;