commit | 58664e8a7ce9e45924fff607c1763660233200e9 | [log] [tgz] |
---|---|---|
author | Nick Desaulniers <ndesaulniers@google.com> | Thu Oct 10 13:09:42 2019 -0700 |
committer | Nick Desaulniers <ndesaulniers@google.com> | Thu Oct 10 13:09:42 2019 -0700 |
tree | 57d3e63a0decf25c1332b03598f3c10d15848fb4 | |
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>