diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-05 16:49:57 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-26 00:10:30 +0200 |
commit | 1e65f0f3396d5d7eaa8e8dd3668dfa180b541c18 (patch) | |
tree | 43cde6e010c80c898d49c7670ed9a63826c4e9b2 /src/arith_uint256.h | |
parent | 1caafa6cde3b88d926611771f9b4c06fcc6e0007 (diff) |
Use compile-time constants instead of unnamed enumerations (remove "enum hack")
Diffstat (limited to 'src/arith_uint256.h')
-rw-r--r-- | src/arith_uint256.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arith_uint256.h b/src/arith_uint256.h index c7734035df..a94fc7b617 100644 --- a/src/arith_uint256.h +++ b/src/arith_uint256.h @@ -25,7 +25,7 @@ template<unsigned int BITS> class base_uint { protected: - enum { WIDTH=BITS/32 }; + static constexpr int WIDTH = BITS / 32; uint32_t pn[WIDTH]; public: |