Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a3c6ba

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 parenteb213ac commit6a3c6ba

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)

[8]ページ先頭

©2009-2025 Movatter.jp