Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GEO #59

Merged
merged 8 commits into from
Feb 21, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix warn
  • Loading branch information
leviathan authored and leviathan committed Feb 16, 2017
commit 46ce7461bbfb727a5dd27b8291aec0b1088e3a2c
2 changes: 1 addition & 1 deletion src/pika_geo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static void GetAllNeighbors(std::string & key, GeoRange & range, CmdRes & res) {
return;
}
// Insert into result only if the point is within the search area.
for (int i = 0; i < sm_v.size(); ++i) {
for (size_t i = 0; i < sm_v.size(); ++i) {
double xy[2], real_distance;
GeoHashBits hash = { .bits = (uint64_t)sm_v[i].score, .step = GEO_STEP_MAX };
geohashDecodeToLongLatWGS84(hash, xy);
Expand Down