Content-Length: 257790 | pFad | http://github.com/postgrespro/postgres/commit/6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa

97 Add an explicit cast to Size to hyperloglog.c · postgrespro/postgres@6a3c6ba · GitHub
Skip to content

Commit 6a3c6ba

Browse files
committed
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.
1 parent eb213ac commit 6a3c6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/lib/hyperloglog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ initHyperLogLog(hyperLogLogState *cState, uint8 bwidth)
7070
elog(ERROR, "bit width must be between 4 and 16 inclusive");
7171

7272
cState->registerWidth = bwidth;
73-
cState->nRegisters = 1 << bwidth;
73+
cState->nRegisters = (Size) 1 << bwidth;
7474
cState->arrSize = sizeof(uint8) * cState->nRegisters + 1;
7575

7676
/*

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy