mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 4e52a63443 into merged_master (Bitcoin PR bitcoin/bitcoin#31691)
This commit is contained in:
commit
3294ad3485
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
|||
#include <stdexcept>
|
||||
|
||||
//! Overflow-safe conversion of MiB to bytes.
|
||||
constexpr size_t operator"" _MiB(unsigned long long mebibytes)
|
||||
constexpr size_t operator""_MiB(unsigned long long mebibytes)
|
||||
{
|
||||
auto bytes{CheckedLeftShift(mebibytes, 20)};
|
||||
if (!bytes || *bytes > std::numeric_limits<size_t>::max()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue