Commit efcbc01f authored by antirez's avatar antirez
Browse files

Remove warning from lpGet snprintf().

parent d63caaa8
...@@ -560,7 +560,7 @@ unsigned char *lpGet(unsigned char *p, int64_t *count, unsigned char *intbuf) { ...@@ -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 /* Return the string representation of the integer or the value itself
* depending on intbuf being NULL or not. */ * depending on intbuf being NULL or not. */
if (intbuf) { if (intbuf) {
*count = snprintf((char*)intbuf,LP_INTBUF_SIZE,"%lld",val); *count = snprintf((char*)intbuf,LP_INTBUF_SIZE,"%lld",(long long)val);
return intbuf; return intbuf;
} else { } else {
*count = val; *count = val;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment