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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy