Skip to content

Commit

Permalink
Wrong return
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishYUO committed Apr 10, 2021
1 parent 581753c commit bb40ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciphers/uint256_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit bb40ea4

Please sign in to comment.