summaryrefslogtreecommitdiff
path: root/src/listpack.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-03-01 15:26:27 +0100
committerantirez <antirez@gmail.com>2018-03-01 15:26:27 +0100
commitefcbc01fbd05dc2d203cb47dd4f48258e4925880 (patch)
tree8aeec20dc754c70438a6d5742517da9e8c59dd37 /src/listpack.c
parentd63caaa8200372773347f34de116d6e62fe174f4 (diff)
downloadredis-efcbc01fbd05dc2d203cb47dd4f48258e4925880.tar.gz
Remove warning from lpGet snprintf().
Diffstat (limited to 'src/listpack.c')
-rw-r--r--src/listpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listpack.c b/src/listpack.c
index 6db4086e9..30ea34690 100644
--- a/src/listpack.c
+++ b/src/listpack.c
@@ -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;