Merge 4e52a63443 into merged_master (Bitcoin PR bitcoin/bitcoin#31691)

This commit is contained in:
ikripaka 2026-04-10 09:28:40 +00:00
commit 3294ad3485
No known key found for this signature in database

View file

@ -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()) {