diff --git a/src/dict.c b/src/dict.c index 69fb3b8f8..210d50dcd 100644 --- a/src/dict.c +++ b/src/dict.c @@ -940,7 +940,7 @@ static unsigned long _dictNextPower(unsigned long size) { unsigned long i = DICT_HT_INITIAL_SIZE; - if (size >= LONG_MAX) return LONG_MAX; + if (size >= LONG_MAX) return LONG_MAX + 1LU; while(1) { if (i >= size) return i;