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
cf9a3f70
Unverified
Commit
cf9a3f70
authored
Nov 08, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 08, 2017
Browse files
Merge pull request #2741 from kmiku7/unstable
fix boundary case for _dictNextPower
parents
30db8055
413d8239
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
cf9a3f70
...
...
@@ -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