1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

mirror: use proper 64bit constants

ed2a08bf25 missed to use 64bit
constants.
This commit is contained in:
Zdenek Kabelac 2015-05-15 22:53:12 +02:00
parent 190e91231c
commit 9e102ecbd9

View File

@ -164,7 +164,7 @@ uint32_t adjusted_mirror_region_size(uint32_t extent_size, uint32_t extents,
uint64_t region_max;
uint64_t region_min, region_min_pow2;
region_max = (1UL << (ffs((int)extents) - 1)) * (1UL << (ffs((int)extent_size) - 1));
region_max = (UINT64_C(1) << (ffs((int)extents) - 1)) * (UINT64_C(1) << (ffs((int)extent_size) - 1));
if (region_max < UINT32_MAX && region_size > region_max) {
region_size = (uint32_t) region_max;