Content-Length: 257643 | pFad | http://github.com/postgrespro/postgres/commit/4b968e2027ba46b31be0a648486f86a2cadc707d

99 Fix incorrect return type · postgrespro/postgres@4b968e2 · GitHub
Skip to content

Commit 4b968e2

Browse files
committed
Fix incorrect return type
fasthash32() calculates a 32-bit hashcode, but the return type was uint64. Change to uint32. Noted by Jeff Davis Discussion: https://postgr.es/m/b16c93e6c736a422d4de668343515375664eb05d.camel%40j-davis.com
1 parent aa1e8c2 commit 4b968e2

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-
static inline uint64
364+
static inline uint32
365365
fasthash32(const char *k, size_t len, uint64 seed)
366366
{
367367
return fasthash_reduce32(fasthash64(k, len, seed));

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/4b968e2027ba46b31be0a648486f86a2cadc707d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy