From 02b23107cc8b1ebeaa17b812a2b63088e4896ebc Mon Sep 17 00:00:00 2001 From: John Sully Date: Sat, 9 Mar 2019 13:41:49 -0500 Subject: [PATCH] sizeof is too big Former-commit-id: a6a022faa228fd67deeb1767c10ed7f184c28c29 --- src/hyperloglog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperloglog.c b/src/hyperloglog.c index b4697b3fd..3aa0e07ff 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -1239,7 +1239,7 @@ void pfcountCommand(client *c) { /* Merge with this HLL with our 'max' HHL by setting max[i] * to MAX(max[i],hll[i]). */ - if (hllMerge(registers,sizeof(max),o) == C_ERR) { + if (hllMerge(registers,HLL_REGISTERS,o) == C_ERR) { addReplySds(c,sdsnew(invalid_hll_err)); return; }