summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2019-11-05 13:15:36 -0800
committerNick Desaulniers <ndesaulniers@google.com>2019-11-05 14:54:06 -0800
commitdaedbd7e47e77b6c6d0dc9668176b4e93d6f6760 (patch)
tree55492f846af03fedb9dac2d7ff8dbb8657b38ce3 /identity/support/src/cppbor_parse.cpp
parentf581c60f088350ee5fd65af24e8422f24b830aeb (diff)
[hardware][interfaces][graphics] fix -Wimplicit-int-float-conversion
IEEE 754 single precision cannot precisely represent the value of large 32b integrals. Accept the imprecision from implicit casts by making the casts explicit. One case is comparing the value before and after converting a float to an int32_t and back, the other is used when printing a value. Bug: 139945549 Test: mm Change-Id: I23375d73cd16be0741defc6395046bd3b22d1335 Merged-in: Id30edce2cd29c0f9c24cd52ba5fb33f7c56a3100 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions