Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ea6c7135 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[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: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 1ed80f45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment