Modules: fix moduleCreateArgvFromUserFormat() casting bug.

In 32 bit systems casting to "long" will cut the result to 32 bit.
This commit is contained in:
antirez 2019-10-23 18:39:14 +02:00
parent 673c9d7029
commit ed2ba31e4c

View File

@ -2853,7 +2853,7 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
size_t len = va_arg(ap,size_t);
argv[argc++] = createStringObject(buf,len);
} else if (*p == 'l') {
long ll = va_arg(ap,long long);
long long ll = va_arg(ap,long long);
argv[argc++] = createObject(OBJ_STRING,sdsfromlonglong(ll));
} else if (*p == 'v') {
/* A vector of strings */