diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-01-23 11:44:51 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-01-23 11:44:51 -0500 |
commit | 6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa (patch) | |
tree | 207683998ac180f5ab4c16c29476f3f932d39324 /src/backend/lib/hyperloglog.c | |
parent | eb213acfe2a51ab3dc6d9bbe02d5d8a903366779 (diff) | |
download | postgresql-6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa.tar.gz postgresql-6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa.zip |
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.
Diffstat (limited to 'src/backend/lib/hyperloglog.c')
-rw-r--r-- | src/backend/lib/hyperloglog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/lib/hyperloglog.c b/src/backend/lib/hyperloglog.c index 1157e9ad763..4b37048c37b 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; /* |