summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/rand/randadv.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2010-11-30 13:14:14 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2010-11-30 13:14:14 +0000
commitd8bf57a7420101c5db6b292f86b6c036a4cd93c5 (patch)
tree68ba42f55253061b6534c4b9b47c9cfdb366c624 /src/VBox/Runtime/common/rand/randadv.cpp
parent753005db2e1b8a35bff39f9e3f11499779642993 (diff)
downloadVirtualBox-svn-d8bf57a7420101c5db6b292f86b6c036a4cd93c5.tar.gz
IPRT: Visual C++ warnings.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@34507 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/common/rand/randadv.cpp')
-rw-r--r--src/VBox/Runtime/common/rand/randadv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VBox/Runtime/common/rand/randadv.cpp b/src/VBox/Runtime/common/rand/randadv.cpp
index 05c0e982a5b..0ab209d18c9 100644
--- a/src/VBox/Runtime/common/rand/randadv.cpp
+++ b/src/VBox/Runtime/common/rand/randadv.cpp
@@ -368,10 +368,10 @@ DECLCALLBACK(uint64_t) rtRandAdvSynthesizeU64FromU32(PRTRANDINT pThis, uint64_t
{
uint64_t off = u64Last - u64First;
if (off <= UINT32_MAX)
- return (uint64_t)pThis->pfnGetU32(pThis, 0, off) + u64First;
+ return (uint64_t)pThis->pfnGetU32(pThis, 0, (uint32_t)off) + u64First;
return ( (uint64_t)pThis->pfnGetU32(pThis, 0, UINT32_MAX)
- | ((uint64_t)pThis->pfnGetU32(pThis, 0, off >> 32) << 32))
+ | ((uint64_t)pThis->pfnGetU32(pThis, 0, (uint32_t)(off >> 32)) << 32))
+ u64First;
}