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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy