libmem/lib/src/memory_utils.cc | raw changeset files shortlog |
1.1 --- a/libmem/lib/src/memory_utils.cc Fri Sep 16 16:08:28 2022 +0200 1.2 +++ b/libmem/lib/src/memory_utils.cc Fri Sep 16 22:06:38 2022 +0200 1.3 @@ -39,7 +39,7 @@ 1.4 { 1.5 unsigned int exp = l4util_log2(size); 1.6 1.7 - if ((1UL << exp) < size) 1.8 + if ((1ULL << exp) < size) 1.9 return exp + 1; 1.10 else 1.11 return exp;