diff options
| author | Pavlos Antoniou <[email protected]> | 2017-06-07 17:21:29 +0000 |
|---|---|---|
| committer | Pavlos Antoniou <[email protected]> | 2017-06-07 17:21:29 +0000 |
| commit | e5c616888b50ba1c35dd99e5500ef2c4dff5b4f9 (patch) | |
| tree | 41c26f5d7a875bf9cd072dff559b384ea8df0774 /src/httpserver.cpp | |
| parent | Merge #9672: Opt-into-RBF for RPC & bitcoin-tx (diff) | |
| download | discoin-e5c616888b50ba1c35dd99e5500ef2c4dff5b4f9.tar.xz discoin-e5c616888b50ba1c35dd99e5500ef2c4dff5b4f9.zip | |
Fix instantiation and array accesses in class base_uint<BITS>
The implementation of base_uint::operator++(int) and base_uint::operator--(int) is now safer.
Array pn is accessed via index i after bounds checking has been performed on the index, rather than before.
The logic of the while loops has also been made more clear.
A compile time assertion has been added in the class constructors to ensure that BITS is a positive multiple of 32.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions