Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7675b00a
Commit
7675b00a
authored
Aug 23, 2015
by
kmiku7
Committed by
antirez
Nov 08, 2017
Browse files
fix boundary case for _dictNextPower
parent
f31d9b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
7675b00a
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment