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/uint256.h | |
parent | 1caafa6cde3b88d926611771f9b4c06fcc6e0007 (diff) |
Use compile-time constants instead of unnamed enumerations (remove "enum hack")
Diffstat (limited to 'src/uint256.h')
-rw-r--r-- | src/uint256.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uint256.h b/src/uint256.h index a92ce07f11..fc05a4ef80 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -19,7 +19,7 @@ template<unsigned int BITS> class base_blob { protected: - enum { WIDTH=BITS/8 }; + static constexpr int WIDTH = BITS / 8; uint8_t data[WIDTH]; public: base_blob() |