mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-22 12:52:48 +08:00
Wrong return
This commit is contained in:
@@ -198,7 +198,7 @@ class uint256_t {
|
|||||||
*/
|
*/
|
||||||
inline uint256_t operator+(const uint256_t &p) {
|
inline uint256_t operator+(const uint256_t &p) {
|
||||||
bool app = s + p.s < s;
|
bool app = s + p.s < s;
|
||||||
return {f + app + p.f, p.s + s};
|
return uint256_t(f + app + p.f, p.s + s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user