diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2012-05-14 02:50:01 +0200 |
---|---|---|
committer | Ricardo M. Correia <rcorreia@wizy.org> | 2012-05-14 02:53:27 +0200 |
commit | fe78c9ae8b4c9701cf6d84a0572a2d503c6ee424 (patch) | |
tree | 1118f2b2fd914cb63cbc82b3951c52e3abc0cdbb /src/main.cpp | |
parent | 4843b55fd167c54d86eb9e1f19525ed363cfe72d (diff) |
Don't overflow signed ints in CBigNum::setint64().
CBigNum::setint64() does 'n <<= 8', where n is of type "long long".
This leads to shifting onto and past the sign bit, which is undefined
behavior in C++11 and can cause problems in the future.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions