diff options
author | Bofang Liu <48510477+ResearchingDexter@users.noreply.github.com> | 2022-04-04 20:35:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 15:35:49 +0300 |
commit | 8500ca4ae8f87fdae3be984146eb2eccd832e56f (patch) | |
tree | 67b9434cc97f0664d58884005bcaa15b08e0ad2b /src/geohash.c | |
parent | 047b609335436db9a38ad10d5e51aa9161c7d3cf (diff) | |
download | redis-8500ca4ae8f87fdae3be984146eb2eccd832e56f.tar.gz |
Fix mistake / outdated doc comment (#10521)
Unlike original reference code, Redis uses 64bit variable, so half the bits make it 32bit, not 16
Diffstat (limited to 'src/geohash.c')
-rw-r--r-- | src/geohash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |