mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 22:15:57 +08:00
Feat: Elliptic Curve Diffie Hellman Key Exchange, Ciphers: Error handling-bit handling
This commit is contained in:
@@ -646,7 +646,7 @@ class uint256_t {
|
||||
template <typename T, typename = typename std::enable_if<
|
||||
std::is_integral<T>::value, T>::type>
|
||||
inline uint256_t operator&(const T &p) {
|
||||
return uint256_t(p & s);
|
||||
return *this & uint256_t(p);
|
||||
}
|
||||
|
||||
inline uint256_t operator&(const uint256_t &p) {
|
||||
@@ -669,7 +669,7 @@ class uint256_t {
|
||||
template <typename T, typename = typename std::enable_if<
|
||||
std::is_integral<T>::value, T>::type>
|
||||
inline uint256_t operator|(const T &p) {
|
||||
return uint256_t(this->s | p);
|
||||
return *this | uint256_t(p);
|
||||
}
|
||||
|
||||
inline uint256_t operator|(const uint256_t &p) {
|
||||
|
||||
Reference in New Issue
Block a user