Merge "Explicit conversion"

This commit is contained in:
Donghong Weng 2022-08-22 01:45:35 +00:00 committed by Gerrit Code Review
commit 160a22f49e

View file

@ -444,7 +444,7 @@ TEST_P(VibratorAidl, ComposeValidPrimitives) {
effect.delayMs = std::rand() % (maxDelay + 1);
effect.primitive = primitive;
effect.scale = static_cast<float>(std::rand()) / RAND_MAX;
effect.scale = static_cast<float>(std::rand()) / static_cast<float>(RAND_MAX);
composite.emplace_back(effect);
if (composite.size() == maxSize) {