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

Commit4b968e2

Browse files
committed
Fix incorrect return type
fasthash32() calculates a 32-bit hashcode, but the returntype was uint64. Change to uint32.Noted by Jeff DavisDiscussion:https://postgr.es/m/b16c93e6c736a422d4de668343515375664eb05d.camel%40j-davis.com
1 parentaa1e8c2 commit4b968e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/common/hashfn_unstable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ fasthash64(const char *k, size_t len, uint64 seed)
361361
}
362362

363363
/* like fasthash64, but returns a 32-bit hashcode */
364-
staticinlineuint64
364+
staticinlineuint32
365365
fasthash32(constchar*k,size_tlen,uint64seed)
366366
{
367367
returnfasthash_reduce32(fasthash64(k,len,seed));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp