cuttlefish: EmulatedFakeCamera2: 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: lunch aosp_cf_x86_phone-userdebug && mm
Change-Id: I72fe9a4f0fa76a0df1552fffb16a793205272d78
Signed-off-by: Nick Desaulniers <[email protected]>
1 file changed