summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2019-04-05 09:10:34 -0700
committerNick Kralevich <nnk@google.com>2019-04-05 09:32:14 -0700
commitc0bf36647b3498c4a456c0b1463813f69c064bf1 (patch)
tree3d43b06c0aef59eb3a3695731630a8415c6afab7 /libsparse/sparse.cpp
parent55ba959c13eb2c1dc61a055a5c929296718a7267 (diff)
zip_archive.cc: Use static cast instead of masking
Although ubsan's implicit-unsigned-integer-truncation sanitizer may be happy, this code still performs an implicit conversion from a wider width data structure to a narrower width data structure. Rather than masking the bits, make the conversion explicit. This keeps ubsan happy as well as addressing a -Wconversion warning. This change addresses comments from the post-submit review of a4e5433660228dae47530518bfb6fc49723f8882. Test: compiles and boots. Bug: 122975762 Change-Id: I1fa6d6f8a6fcfb93ba9916b7d2b3564ca1d8caf3
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions