diff options
author | Jack Lloyd <[email protected]> | 2017-09-30 12:17:39 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-30 12:17:39 -0400 |
commit | 62eb9857a46ddc508798176e3f77830ff0034e1b (patch) | |
tree | 43388f1a63236f82de13d9d308ac8fda79d201c5 /src/tests | |
parent | f6dc3db8bb7e31569ed1a6042771e3f529aefab8 (diff) |
Address some MSVC warnings
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_rng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_rng.cpp b/src/tests/test_rng.cpp index e018349c0..193a94379 100644 --- a/src/tests/test_rng.cpp +++ b/src/tests/test_rng.cpp @@ -761,7 +761,7 @@ class RDRAND_RNG_Tests final : public Test an invalid ptr/length field to add_entropy. If it examined its arguments, it would crash... */ - const uint8_t* invalid_ptr = reinterpret_cast<const uint8_t*>(0xDEADC0DE); + const uint8_t* invalid_ptr = reinterpret_cast<const uint8_t*>(static_cast<uintptr_t>(0xDEADC0DE)); const size_t invalid_ptr_len = 64*1024; rng.add_entropy(invalid_ptr, invalid_ptr_len); |