aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-12-13 21:56:41 +0000
committerlloyd <[email protected]>2010-12-13 21:56:41 +0000
commit64272438aad858bdf4fc93cd94e0a20093c0191f (patch)
tree534ec5c19df5104de7d62aab024c48007b37799e /src/entropy
parentd5af39b6306086baa4159a18ad833b1c3e1e573b (diff)
Fix some VC warnings under 64 bit compiles
Diffstat (limited to 'src/entropy')
-rw-r--r--src/entropy/cryptoapi_rng/es_capi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entropy/cryptoapi_rng/es_capi.cpp b/src/entropy/cryptoapi_rng/es_capi.cpp
index 420977a9b..496dfa1f3 100644
--- a/src/entropy/cryptoapi_rng/es_capi.cpp
+++ b/src/entropy/cryptoapi_rng/es_capi.cpp
@@ -35,7 +35,7 @@ class CSP_Handle
size_t gen_random(byte out[], size_t n) const
{
- if(is_valid() && CryptGenRandom(handle, n, out))
+ if(is_valid() && CryptGenRandom(handle, n, static_cast<DWORD>(out)))
return n;
return 0;
}