mirror of
https://github.com/postgres/postgres.git
synced 2026-04-13 21:17:00 -04:00
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.
This commit is contained in:
parent
eb213acfe2
commit
6a3c6ba0ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue