mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-02 16:26:37 +00:00
Add constexpr constructor for base_uint
This commit is contained in:
committed by
Nik Bougalis
parent
95426efb8a
commit
85307b29d0
@@ -96,12 +96,8 @@ getBookBase(Book const& book)
|
||||
uint256
|
||||
getQualityNext(uint256 const& uBase)
|
||||
{
|
||||
static uint256 const nextq = []() {
|
||||
uint256 x;
|
||||
(void)x.parseHex(
|
||||
"0000000000000000000000000000000000000000000000010000000000000000");
|
||||
return x;
|
||||
}();
|
||||
static constexpr uint256 nextq(
|
||||
"0000000000000000000000000000000000000000000000010000000000000000");
|
||||
return uBase + nextq;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user