aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 12:17:39 -0400
committerJack Lloyd <[email protected]>2017-09-30 12:17:39 -0400
commit62eb9857a46ddc508798176e3f77830ff0034e1b (patch)
tree43388f1a63236f82de13d9d308ac8fda79d201c5 /src/tests
parentf6dc3db8bb7e31569ed1a6042771e3f529aefab8 (diff)
Address some MSVC warnings
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_rng.cpp2
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);