зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in dom/vr/ r=kip
Depends on D43781 Differential Revision: https://phabricator.services.mozilla.com/D43782 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
95fecf7af4
Коммит
a3c3a55924
|
@ -743,7 +743,7 @@ void VRFrameInfo::Update(const gfx::VRDisplayInfo& aInfo,
|
||||||
* has a base of 0, which is not necessarily true in all UA's.
|
* has a base of 0, which is not necessarily true in all UA's.
|
||||||
*/
|
*/
|
||||||
mTimeStampOffset =
|
mTimeStampOffset =
|
||||||
float(rand()) / RAND_MAX * 10000.0f + 1000.0f - aState.timestamp;
|
float(rand()) / float(RAND_MAX) * 10000.0f + 1000.0f - aState.timestamp;
|
||||||
}
|
}
|
||||||
mVRState.timestamp = aState.timestamp + mTimeStampOffset;
|
mVRState.timestamp = aState.timestamp + mTimeStampOffset;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче