diff options
author | Lloyd Pique <lpique@google.com> | 2020-01-16 17:51:13 -0800 |
---|---|---|
committer | Lloyd Pique <lpique@google.com> | 2020-01-21 13:00:37 -0800 |
commit | 0a456231ef2e06007c70043500c13186397a450c (patch) | |
tree | dd0065a53818335bf17c0f41f1a86ee4e17bd981 /services/surfaceflinger/CompositionEngine/tests/DisplayColorProfileTest.cpp | |
parent | 6d8a276c39310bf61dfd581d1c6596b5c8207ef0 (diff) | |
download | native-0a456231ef2e06007c70043500c13186397a450c.tar.gz |
CE: Cleanups for conversion warnings
1) If converting from float to int, adds an explicit cast as well as
considers rounding.
2) Adjust some arguments from int32_t to uint32_t where that makes
sense.
3) Adds explicit casts from int32_t to uint32_t where a cast is
necessary.
4) Converts constants used in the tests to the right type (float instead
of double, unsigned instead of signed).
Test: Builds with "-Wconversion" enabled locally
Bug: 129481165
Change-Id: I405af72c22f37865537bdefa3f589b4b2930f56c
Diffstat (limited to 'services/surfaceflinger/CompositionEngine/tests/DisplayColorProfileTest.cpp')
0 files changed, 0 insertions, 0 deletions