mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Feat: Elliptic Curve Diffie Hellman Key Exchange, Ciphers: Error handling-bit handling
This commit is contained in:
parent
ac2a5e1742
commit
2001c91cd4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user