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

Remove erroneous cast to size_t in BID_HASH_FUNC#10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ololobus merged 1 commit intopostgrespro:masterfromfunny-falcon:patch-1
May 24, 2021

Conversation

@funny-falcon
Copy link
Contributor

It were mistakenly remain after change of BID_HASH_FUNC meaning

@ololobusololobus self-requested a reviewMay 24, 2021 09:08
* with '% PtrackContentNblocks' */
#defineBID_HASH_FUNC(bid) \
(size_t)(DatumGetUInt64(hash_any_extended((unsigned char *)&bid, sizeof(bid), 0)))
(DatumGetUInt64(hash_any_extended((unsigned char *)&bid, sizeof(bid), 0)))
Copy link
Contributor

@ololobusololobusMay 24, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah, thissize_t seems to be not correct, since it is 32 bit wide on 32 bit systems, which is not what we want here. However, next we assign this value tohash variable, which again has asize_t type, so this change alone does not has much sense, doesn't it? Probably we should change all appearances ofsize_t used for hash map reference touint64 for portability?

Copy link
ContributorAuthor

@funny-falconfunny-falconMay 24, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yep, I recognizehash variable as well. I've just push-forced branch.

It were mistakenly remain after change of BID_HASH_FUNC meaning
Copy link
Contributor

@ololobusololobus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM now

@ololobusololobus merged commit8d42b6b intopostgrespro:masterMay 24, 2021
@funny-falconfunny-falcon deleted the patch-1 branchMay 24, 2021 09:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ololobusololobusololobus approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@funny-falcon@ololobus

[8]ページ先頭

©2009-2025 Movatter.jp