diff options
Diffstat (limited to 'src/tests/test_rng.cpp')
-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); |