diff options
| author | MarcoFalke <[email protected]> | 2017-11-11 18:07:23 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2017-11-11 18:07:28 -0500 |
| commit | 2adbddb03840ad71e843c6c4a207a13e871cd1d4 (patch) | |
| tree | e3ef2bbc3bd775e1e7ab36c2538ab5b248288eaa /src/arith_uint256.h | |
| parent | Merge #3716: GUI: Receive: Remove option to reuse a previous address (diff) | |
| parent | Use compile-time constants instead of unnamed enumerations (remove "enum hack") (diff) | |
| download | discoin-2adbddb03840ad71e843c6c4a207a13e871cd1d4.tar.xz discoin-2adbddb03840ad71e843c6c4a207a13e871cd1d4.zip | |
Merge #10749: Use compile-time constants instead of unnamed enumerations (remove "enum hack")
1e65f0f33 Use compile-time constants instead of unnamed enumerations (remove "enum hack") (practicalswift)
Pull request description:
Use compile-time constants instead of unnamed enumerations (remove "enum hack").
Tree-SHA512: 1b6ebb2755398c5ebab6cce125b1dfc39cbd1504d98d55136b32703fe935c4070360ab3b2f52b1da48ba9f3b01082d204f3d87c92ccb5c8c333731f7f972e128
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 5fd4fe96c..1009fe1cc 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: |