Merge "Explicit conversion"
This commit is contained in:
commit
160a22f49e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue