Change from (int division -> cast) to (cast -> float division)
parent
eceb8aeed1
commit
7db6475592
|
@ -74,7 +74,7 @@ TEST_F(utMatrix3x3Test, FromToMatrixTest) {
|
|||
aiVector3D from, to;
|
||||
|
||||
auto random_ratio = []() -> float {
|
||||
return static_cast<float>(rand() / RAND_MAX);
|
||||
return static_cast<float>(rand()) / static_cast<float>(RAND_MAX);
|
||||
};
|
||||
|
||||
for (int i = 0; i < NUM_SAMPLES; ++i) {
|
||||
|
|
Loading…
Reference in New Issue