From: Tom Hughes Date: Wed, 12 Sep 2007 17:46:03 +0000 (+0000) Subject: Make the MySQL tile_for_point function take arguments in the same order X-Git-Tag: live~8133 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b1a0e5ae8b3e3d1052cc7c3e3ec12750060cb173?hp=d19ca7c44bc4811cb0cca046a10af31d534de86f;ds=sidebyside Make the MySQL tile_for_point function take arguments in the same order as the ruby version. --- diff --git a/db/functions/quadtile.c b/db/functions/quadtile.c index 7d17f6f76..c0eb1ec3a 100644 --- a/db/functions/quadtile.c +++ b/db/functions/quadtile.c @@ -24,8 +24,8 @@ void tile_for_point_deinit(UDF_INIT *initid) long long tile_for_point(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) { - long long lon = *(long long *)args->args[0]; - long long lat = *(long long *)args->args[1]; + long long lat = *(long long *)args->args[0]; + long long lon = *(long long *)args->args[1]; return xy2tile(lon2x(lon / 1000000.0), lat2y(lat / 1000000.0)); }