# HG changeset patch # User Paul Boddie # Date 1663358798 -7200 # Node ID d1d34f2d70344e2b110956f3306e929b793c8815 # Parent bd893bc43d7c1b10625b8c7f5585a3ad1ce2df0a Use a literal type consistent with the other types involved. diff -r bd893bc43d7c -r d1d34f2d7034 libmem/lib/src/memory_utils.cc --- a/libmem/lib/src/memory_utils.cc Fri Sep 16 16:08:28 2022 +0200 +++ b/libmem/lib/src/memory_utils.cc Fri Sep 16 22:06:38 2022 +0200 @@ -39,7 +39,7 @@ { unsigned int exp = l4util_log2(size); - if ((1UL << exp) < size) + if ((1ULL << exp) < size) return exp + 1; else return exp;