From 1e65f0f3396d5d7eaa8e8dd3668dfa180b541c18 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 5 Jul 2017 16:49:57 +0200 Subject: Use compile-time constants instead of unnamed enumerations (remove "enum hack") --- src/uint256.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/uint256.h') 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 class base_blob { protected: - enum { WIDTH=BITS/8 }; + static constexpr int WIDTH = BITS / 8; uint8_t data[WIDTH]; public: base_blob() -- cgit v1.2.3