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
efcbc01f
Commit
efcbc01f
authored
Mar 01, 2018
by
antirez
Browse files
Remove warning from lpGet snprintf().
parent
d63caaa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/listpack.c
View file @
efcbc01f
...
...
@@ -560,7 +560,7 @@ unsigned char *lpGet(unsigned char *p, int64_t *count, unsigned char *intbuf) {
/* Return the string representation of the integer or the value itself
* depending on intbuf being NULL or not. */
if
(
intbuf
)
{
*
count
=
snprintf
((
char
*
)
intbuf
,
LP_INTBUF_SIZE
,
"%lld"
,
val
);
*
count
=
snprintf
((
char
*
)
intbuf
,
LP_INTBUF_SIZE
,
"%lld"
,
(
long
long
)
val
);
return
intbuf
;
}
else
{
*
count
=
val
;
...
...
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