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
586500c0
Commit
586500c0
authored
Dec 10, 2010
by
Pieter Noordhuis
Browse files
Typo
parent
eae33c1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_string.c
View file @
586500c0
...
@@ -88,7 +88,7 @@ static int getBitOffsetFromArgument(redisClient *c, robj *o, size_t *offset) {
...
@@ -88,7 +88,7 @@ static int getBitOffsetFromArgument(redisClient *c, robj *o, size_t *offset) {
if
(
getLongLongFromObjectOrReply
(
c
,
o
,
&
loffset
,
err
)
!=
REDIS_OK
)
if
(
getLongLongFromObjectOrReply
(
c
,
o
,
&
loffset
,
err
)
!=
REDIS_OK
)
return
REDIS_ERR
;
return
REDIS_ERR
;
/* Limit offset to SIZE_T_MAX or
1G
B in bytes */
/* Limit offset to SIZE_T_MAX or
512M
B in bytes */
if
((
loffset
<
0
)
||
if
((
loffset
<
0
)
||
((
unsigned
long
long
)
loffset
>=
(
unsigned
)
SIZE_T_MAX
)
||
((
unsigned
long
long
)
loffset
>=
(
unsigned
)
SIZE_T_MAX
)
||
((
unsigned
long
long
)
loffset
>>
3
)
>=
(
512
*
1024
*
1024
))
((
unsigned
long
long
)
loffset
>>
3
)
>=
(
512
*
1024
*
1024
))
...
...
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