mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 11:51:01 +00:00
Modules: fix moduleCreateArgvFromUserFormat() casting bug.
In 32 bit systems casting to "long" will cut the result to 32 bit.
This commit is contained in:
parent
673c9d7029
commit
ed2ba31e4c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user