Skip to content

Commit 9507c5b

Browse files
committed
Delint Clang.
1 parent 26c0194 commit 9507c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/bitcoin/system/funclets.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ constexpr bool is_nonzero(Type value) noexcept
4747
template <typename Type>
4848
constexpr Type zeroize(Type& value) noexcept
4949
{
50-
return value ^= value;
50+
return (value = static_cast<Type>(0));
5151
}
5252

5353
template <typename Type>

0 commit comments

Comments
 (0)