summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Nick Desaulniers <ndesaulniers@google.com> 2019-10-15 19:14:39 -0700
committer Nick Desaulniers <ndesaulniers@google.com> 2019-10-15 19:14:39 -0700
commitea6c713503b283eef9e6cd1d6674228f6a81d762 (patch)
tree3f92ef0d6878d4c2da5eef64e992888aee32b7c6 /libs/gui/LayerDebugInfo.cpp
parent1ed80f45a6622256906b29c8e0468d1ece527ee8 (diff)
[frameworks][native][libs]{math|ui} fix -Wimplicit-int-float-conversion
Some of the overloaded constructors accept templated types. This makes it simple to specify Vec{2|3}/Quat's using integer literals. This could result in precision loss for large integrals that aren't precisely representable by IEEE 754 Single Precision floats. If you're creating such primitives from such large values, and getting imprecision...well, you kind of asked for it. Add explicit casts to silence the warning. Bug: 139945549 Test: mm Change-Id: Icaaa8906157aa166f54d915fca643efd639fdafa Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions