We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c0194 commit 9507c5bCopy full SHA for 9507c5b
include/bitcoin/system/funclets.hpp
@@ -47,7 +47,7 @@ constexpr bool is_nonzero(Type value) noexcept
47
template <typename Type>
48
constexpr Type zeroize(Type& value) noexcept
49
{
50
- return value ^= value;
+ return (value = static_cast<Type>(0));
51
}
52
53
0 commit comments