Change-Id: Ib9baacdbdd47f197b39c530a2b5bff75e0fc944e
if (((*size) - (*start)) < static_cast<long int>(groupsCount)) {
long int required = (*start) + groupsCount;
// value bigger is the lowest power of 2 that is bigger than required value
- long int bigger = 1 << ((sizeof(unsigned long) << 3) - __builtin_clzl(static_cast<unsigned long>(required)));
+ long int bigger = (long int)1 << ((sizeof(unsigned long) << 3) - __builtin_clzl(static_cast<unsigned long>(required)));
gid_t *ptr = static_cast<gid_t*>(realloc(*groupsp, sizeof(gid_t) * (bigger)));
if (!ptr) {