diff options
author | Oran Agra <oran@redislabs.com> | 2021-05-03 08:33:21 +0300 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2021-05-03 18:59:47 +0300 |
commit | fd7d51c353607f350c865155444bce9236f3d682 (patch) | |
tree | 37444197b342c7c21bde1c391eb142cda845bf48 /src/object.c | |
parent | f0c5f920d0f88bd8aa376a2c05af4902789d1ef9 (diff) | |
download | redis-fd7d51c353607f350c865155444bce9236f3d682.tar.gz |
Resolve nonsense static analysis warnings
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index b75e547b9..c7b25ffd4 100644 --- a/src/object.c +++ b/src/object.c @@ -836,7 +836,7 @@ size_t objectComputeSize(robj *o, size_t sample_size) { if (samples) asize += (double)elesize/samples*dictSize(d); } else if (o->encoding == OBJ_ENCODING_INTSET) { intset *is = o->ptr; - asize = sizeof(*o)+sizeof(*is)+is->encoding*is->length; + asize = sizeof(*o)+sizeof(*is)+(size_t)is->encoding*is->length; } else { serverPanic("Unknown set encoding"); } |