• antirez's avatar
    Geo: fix typo in geohashEstimateStepsByRadius(). · 5d4b5fbd
    antirez authored
    I'm the author of this line but I can't see a good reason for it to
    don't be a typo, a step of 26 should be valid with 52 bits per
    coordinate, moreover the line was:
    
        if (step > 26) step = 25;
    
    So a step of 26 was actually already used, except when one of 27 was
    computed (which is invalid) only then it was trimmed to 25 instead of
    26.
    
    All tests passing after the change.
    5d4b5fbd
geohash_helper.c 7.3 KB