summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorItamar Haber <itamar@redislabs.com>2016-02-18 15:11:30 -0800
committerItamar Haber <itamar@redislabs.com>2016-02-18 15:11:30 -0800
commitb5149f08684b55a11b158e12770d35d78d44b2f4 (patch)
tree7680f6dbd565468fd5146ff9e4a0090d8949328e /src
parent41030ae2dee2d88451cb0bfe6b6a1b72ea0d84eb (diff)
downloadredis-b5149f08684b55a11b158e12770d35d78d44b2f4.tar.gz
Eliminates engineers near the equator & prime meridian
Diffstat (limited to 'src')
-rw-r--r--src/geo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/geo.c b/src/geo.c
index 971fef7b0..8f6e3f645 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -588,8 +588,8 @@ void georadiusGeneric(client *c, int type) {
if (withcoords) {
addReplyMultiBulkLen(c, 2);
- addReplyDouble(c, gp->longitude);
- addReplyDouble(c, gp->latitude);
+ addReplyHumanLongDouble(c, gp->longitude);
+ addReplyHumanLongDouble(c, gp->latitude);
}
}
} else {
@@ -726,8 +726,8 @@ void geoposCommand(client *c) {
continue;
}
addReplyMultiBulkLen(c,2);
- addReplyDouble(c,xy[0]);
- addReplyDouble(c,xy[1]);
+ addReplyHumanLongDouble(c,xy[0]);
+ addReplyHumanLongDouble(c,xy[1]);
}
}
}