mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-23 05:12:40 +08:00
Wrong return
This commit is contained in:
@@ -198,7 +198,7 @@ class uint256_t {
|
||||
*/
|
||||
inline uint256_t operator+(const uint256_t &p) {
|
||||
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