[Groonga-commit] groonga/groonga [master] revert wrong int cast.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 10日 (木) 15:31:48 JST


Kouhei Sutou	2011-03-10 06:31:48 +0000 (Thu, 10 Mar 2011)

  New Revision: 9f826153c3a9615bdc0a6f56f4052e6311ad36ff

  Log:
    revert wrong int cast.

  Modified files:
    lib/geo.h

  Modified: lib/geo.h (+1 -1)
===================================================================
--- lib/geo.h    2011-03-09 08:17:19 +0000 (959687a)
+++ lib/geo.h    2011-03-10 06:31:48 +0000 (1764881)
@@ -38,7 +38,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)   ((int)((M_PI / (GRN_GEO_RESOLUTION * 180)) * (x)))
+#define GRN_GEO_INT2RAD(x)   ((M_PI / (GRN_GEO_RESOLUTION * 180)) * (x))
 #define GRN_GEO_RAD2INT(x)   ((int)(((GRN_GEO_RESOLUTION * 180) / M_PI) * (x)))
 
 #define GRN_GEO_MAX_LATITUDE  324000000 /*  90 * 60 * 60 * 1000 */




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