[scudo] Fix implicitly narrow casting (NFC)
authorChia-hung Duan <chiahungduan@google.com>
Fri, 14 Oct 2022 06:36:47 +0000 (06:36 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Sat, 15 Oct 2022 03:54:53 +0000 (03:54 +0000)
commit3ead26e65bab612e6aead979646b40c6c15d9ba6
treec406c65d350050787903beec4f1ccabacfefae46
parent25915c6ad2cb248b99fd61015e34fa9e819397b3
[scudo] Fix implicitly narrow casting (NFC)

u16 may be promoted to int by arithmetic type conversion. Do an explicit
cast to avoid certain compiler's warning. This fixes the problem
introduced by 0fb2aeef5310eaba2915b30810464a744a80da15

Differential Revision: https://reviews.llvm.org/D135985
compiler-rt/lib/scudo/standalone/local_cache.h