[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>
Fri, 14 Oct 2022 18:59:08 +0000 (18:59 +0000)
commitfd7c7ad4fe0138314b922ea0db1691d5a679cc75
treef9b9c76a15d21e183bf3dca2185d1cb37640af0f
parentd3366efd436dfc121d9d2f021c51832a800a8cd9
[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.

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