diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-06-19 21:25:52 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-06-19 21:25:52 +0200 |
commit | ba61f37f9cb04b456157d6eec502440500453dbc (patch) | |
tree | 6e52463617bb82d2dcf702ad268f943ec1c40112 /tests | |
parent | Merge pull request #775 (diff) | |
parent | fix: error: -Werror=misleading-indentation (diff) | |
download | monero-ba61f37f9cb04b456157d6eec502440500453dbc.tar.xz |
Merge pull request #846
de030d9 fix: error: -Werror=misleading-indentation (moneroexample)
c2d7300 contrib: epee: add exception spec to throwing destructors (redfish)
6898741 src: p2p: add exception spec to throwing destructors (redfish)
21dbc95 crypto: slow-hash: fix misleading indent (redfish)
70f3634 crypto: slow-hash: remove unused hash list for ARM (redfish)
1a7772f crypto: oaes_lib: remove unused _NR array (redfish)
6462a3a crypto: fix compile error: use named type in sizeof (redfish)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index 6d4a100df..1d1f85945 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -129,7 +129,9 @@ public: return starting_height[version]; } virtual void set_hard_fork_version(uint64_t height, uint8_t version) { - if (versions.size() <= height) versions.resize(height+1); versions[height] = version; + if (versions.size() <= height) + versions.resize(height+1); + versions[height] = version; } virtual uint8_t get_hard_fork_version(uint64_t height) const { return versions[height]; |