[Groonga-commit] groonga/groonga [master] add missing parentheses.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 5日 (木) 11:30:28 JST


Kouhei Sutou	2010-08-05 02:30:28 +0000 (Thu, 05 Aug 2010)

  New Revision: b9e2c0b16a2459df152b57d79ac1ec865f5605bf

  Log:
    add missing parentheses.

  Modified files:
    lib/geo.h

  Modified: lib/geo.h (+1 -1)
===================================================================
--- lib/geo.h    2010-08-04 03:06:31 +0000 (4fb6291)
+++ lib/geo.h    2010-08-05 02:30:28 +0000 (f976147)
@@ -35,7 +35,7 @@ extern "C" {
 #define GRN_GEO_GRS_C1       6335439
 #define GRN_GEO_GRS_C2       6378137
 #define GRN_GEO_GRS_C3       0.006694
-#define GRN_GEO_INT2RAD(x)   ((M_PI / (GRN_GEO_RESOLUTION * 180)) * x)
+#define GRN_GEO_INT2RAD(x)   ((M_PI / (GRN_GEO_RESOLUTION * 180)) * (x))
 
 #define GRN_GEO_POINT_VALUE_RADIUS(obj,_latitude,_longitude) do {\
   grn_geo_point *_val = (grn_geo_point *)GRN_BULK_HEAD(obj);\




Groonga-commit メーリングリストの案内
Back to archive index