From 8500ca4ae8f87fdae3be984146eb2eccd832e56f Mon Sep 17 00:00:00 2001 From: Bofang Liu <48510477+ResearchingDexter@users.noreply.github.com> Date: Mon, 4 Apr 2022 20:35:49 +0800 Subject: [PATCH] Fix mistake / outdated doc comment (#10521) Unlike original reference code, Redis uses 64bit variable, so half the bits make it 32bit, not 16 --- src/geohash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geohash.c b/src/geohash.c index de9620b7a..2cbcf2875 100644 --- a/src/geohash.c +++ b/src/geohash.c @@ -46,7 +46,7 @@ /* Interleave lower bits of x and y, so the bits of x * are in the even positions and bits from y in the odd; - * x and y must initially be less than 2**32 (65536). + * x and y must initially be less than 2**32 (4294967296). * From: https://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN */ static inline uint64_t interleave64(uint32_t xlo, uint32_t ylo) {