diff options
| author | practicalswift <[email protected]> | 2017-07-05 16:49:57 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-07-26 00:10:30 +0200 |
| commit | 1e65f0f3396d5d7eaa8e8dd3668dfa180b541c18 (patch) | |
| tree | 43cde6e010c80c898d49c7670ed9a63826c4e9b2 /src/uint256.h | |
| parent | Merge #10508: Run Qt wallet tests on travis (diff) | |
| download | discoin-1e65f0f3396d5d7eaa8e8dd3668dfa180b541c18.tar.xz discoin-1e65f0f3396d5d7eaa8e8dd3668dfa180b541c18.zip | |
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 a92ce07f1..fc05a4ef8 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() |