diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2019-10-10 13:09:42 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2019-10-10 13:09:42 -0700 |
commit | 58664e8a7ce9e45924fff607c1763660233200e9 (patch) | |
tree | 57d3e63a0decf25c1332b03598f3c10d15848fb4 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 691e1a093c3c67973183d1b88a4141d663a472f3 (diff) |
[frameworks][base][statsd] fix -Wimplicit-int-float-conversion
RAND_MAX cannot be precisely represented in an IEEE 754 single precision
float. For the purpose of generating a random number, the imprecision
is irrelevant. Fix the warning with an explicit cast.
Bug: 139945549
Test: mm
Change-Id: Ica60b410bbbca0b3807f985e302abb0775133877
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions