We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f4479 commit 20cb1a0Copy full SHA for 20cb1a0
1 file changed
lib/fizzy/limits.hpp
@@ -14,7 +14,7 @@ constexpr uint32_t PageSize = 65536;
14
/// Convert memory size in pages to size in bytes.
15
inline constexpr uint64_t memory_pages_to_bytes(uint32_t pages) noexcept
16
{
17
- return pages * PageSize;
+ return uint64_t{pages} * PageSize;
18
}
19
20
/// The maximum memory page limit as defined by the specification.
0 commit comments