From: Robert Haas Date: Fri, 23 Jan 2015 16:44:51 +0000 (-0500) Subject: Add an explicit cast to Size to hyperloglog.c X-Git-Tag: REL9_5_ALPHA1~879 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa;p=postgresql Add an explicit cast to Size to hyperloglog.c MSVC generates a warning here; we hope this will make it happy. Report by Michael Paquier. Patch by David Rowley. --- diff --git a/src/backend/lib/hyperloglog.c b/src/backend/lib/hyperloglog.c index 1157e9ad76..4b37048c37 100644 --- a/src/backend/lib/hyperloglog.c +++ b/src/backend/lib/hyperloglog.c @@ -70,7 +70,7 @@ initHyperLogLog(hyperLogLogState *cState, uint8 bwidth) elog(ERROR, "bit width must be between 4 and 16 inclusive"); cState->registerWidth = bwidth; - cState->nRegisters = 1 << bwidth; + cState->nRegisters = (Size) 1 << bwidth; cState->arrSize = sizeof(uint8) * cState->nRegisters + 1; /*