Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bab437be
Commit
bab437be
authored
Aug 23, 2015
by
kmiku7
Committed by
antirez
Nov 08, 2017
Browse files
fix boundary case for _dictNextPower
parent
0aa0cdf7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/dict.c
View file @
bab437be
...
...
@@ -949,7 +949,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