diff options
| author | 2019-10-09 15:43:12 -0700 | |
|---|---|---|
| committer | 2019-10-09 15:43:12 -0700 | |
| commit | 02233490477e1e054527270f1b87afb1a911de1d (patch) | |
| tree | d283b018e84a05088b5e5dd7d2dc5e945f666c80 /vulkan/libvulkan/api.cpp | |
| parent | 373c5df15a742bfa94226ab831d73cdf96800724 (diff) | |
[frameworks][native][opengl] fix -Wimplicit-int-float-conversion
IEEE754 single precision cannot precisely represent RAND_MAX.
error: implicit conversion from 'int' to 'float' changes value from
2147483647 to 2147483648 [-Werror,-Wimplicit-int-float-conversion]
For purposes of generating random uniforms, this does not matter. Add
explicit casts of RAND_MAX to float to fix.
Bug: 139945549
Test: mm
Change-Id: I3a609b9bbe2e62eeacf5a6853ba625a512e5bcba
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions