null+****@clear*****
null+****@clear*****
2010年 8月 11日 (水) 15:50:18 JST
Kouhei Sutou 2010-08-11 06:50:18 +0000 (Wed, 11 Aug 2010) New Revision: fcc8bfd1a17875a12ba664940043d57911bf2466 Log: remove needless parentheses. Modified files: lib/geo.c Modified: lib/geo.c (+1 -1) =================================================================== --- lib/geo.c 2010-08-11 06:43:35 +0000 (d5a1c95) +++ lib/geo.c 2010-08-11 06:50:18 +0000 (c382bd3) @@ -522,7 +522,7 @@ grn_geo_search(grn_ctx *ctx, grn_obj *obj, grn_obj **args, int nargs, d = GRN_UINT32_VALUE(pos2) / (double)GRN_GEO_RADIUS; geo_point2.latitude = geo_point1->latitude + GRN_GEO_RAD2INT(d); geo_point2.longitude = geo_point1->longitude; - d = (d) * (d); + d = d * d; break; case GRN_DB_INT64 : d = GRN_INT64_VALUE(pos2) / (double)GRN_GEO_RADIUS;