mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Wrong return
This commit is contained in:
parent
581753c65c
commit
bb40ea4ca5
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user