[Groonga-commit] groonga/groonga at e27498a [master] Fix a typo

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Dec 8 23:52:52 JST 2013


Kouhei Sutou	2013-12-08 23:52:52 +0900 (Sun, 08 Dec 2013)

  New Revision: e27498a1ba525e91a07cbd835f990e1ff69026c7
  https://github.com/groonga/groonga/commit/e27498a1ba525e91a07cbd835f990e1ff69026c7

  Message:
    Fix a typo
    
    GRN_GEO_LO GITUDE_IS_WRAPPED ->
    GRN_GEO_LONGITUDE_IS_WRAPPED
              +

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+6 -6)
===================================================================
--- lib/geo.c    2013-12-08 23:51:43 +0900 (a6ee5c0)
+++ lib/geo.c    2013-12-08 23:52:52 +0900 (ea75ffe)
@@ -31,7 +31,7 @@
 #define GRN_GEO_POINT_IN_SOUTH_EAST(point) \
   ((point)->latitude < 0 && (point)->longitude >= 0)
 
-#define GRN_GEO_LOGITUDE_IS_WRAPPED(top_left, bottom_right) \
+#define GRN_GEO_LONGITUDE_IS_WRAPPED(top_left, bottom_right) \
   ((top_left)->longitude > 0 && (bottom_right)->longitude < 0)
 
 typedef struct {
@@ -1314,7 +1314,7 @@ extract_rectangle_in_area(grn_ctx *ctx,
         GRN_GEO_POINT_IN_NORTH_EAST(bottom_right)) {
       area_top_left->latitude     = MAX(top_left->latitude,      0);
       area_bottom_right->latitude = MAX(bottom_right->latitude,  0);
-      if (GRN_GEO_LOGITUDE_IS_WRAPPED(top_left, bottom_right)) {
+      if (GRN_GEO_LONGITUDE_IS_WRAPPED(top_left, bottom_right)) {
         area_top_left->longitude     = top_left->longitude;
         area_bottom_right->longitude = GRN_GEO_MAX_LONGITUDE;
       } else {
@@ -1330,7 +1330,7 @@ extract_rectangle_in_area(grn_ctx *ctx,
         GRN_GEO_POINT_IN_NORTH_WEST(bottom_right)) {
       area_top_left->latitude     = MAX(top_left->latitude,       0);
       area_bottom_right->latitude = MAX(bottom_right->latitude,   0);
-      if (GRN_GEO_LOGITUDE_IS_WRAPPED(top_left, bottom_right)) {
+      if (GRN_GEO_LONGITUDE_IS_WRAPPED(top_left, bottom_right)) {
         area_top_left->longitude     = GRN_GEO_MIN_LONGITUDE;
         area_bottom_right->longitude = bottom_right->longitude;
       } else {
@@ -1346,7 +1346,7 @@ extract_rectangle_in_area(grn_ctx *ctx,
         GRN_GEO_POINT_IN_SOUTH_WEST(bottom_right)) {
       area_top_left->latitude     = MIN(top_left->latitude,      -1);
       area_bottom_right->latitude = MIN(bottom_right->latitude,  -1);
-      if (GRN_GEO_LOGITUDE_IS_WRAPPED(top_left, bottom_right)) {
+      if (GRN_GEO_LONGITUDE_IS_WRAPPED(top_left, bottom_right)) {
         area_top_left->longitude     = GRN_GEO_MIN_LONGITUDE;
         area_bottom_right->longitude = bottom_right->longitude;
       } else {
@@ -1362,7 +1362,7 @@ extract_rectangle_in_area(grn_ctx *ctx,
         GRN_GEO_POINT_IN_SOUTH_EAST(bottom_right)) {
       area_top_left->latitude     = MIN(top_left->latitude,      -1);
       area_bottom_right->latitude = MIN(bottom_right->latitude,  -1);
-      if (GRN_GEO_LOGITUDE_IS_WRAPPED(top_left, bottom_right)) {
+      if (GRN_GEO_LONGITUDE_IS_WRAPPED(top_left, bottom_right)) {
         area_top_left->longitude     = top_left->longitude;
         area_bottom_right->longitude = GRN_GEO_MAX_LONGITUDE;
       } else {
@@ -2126,7 +2126,7 @@ grn_geo_in_rectangle_raw(grn_ctx *ctx, grn_geo_point *point,
     return GRN_FALSE;
   }
 
-  if (GRN_GEO_LOGITUDE_IS_WRAPPED(top_left, bottom_right)) {
+  if (GRN_GEO_LONGITUDE_IS_WRAPPED(top_left, bottom_right)) {
     if (point->longitude >= top_left->longitude) {
       return GRN_TRUE;
     }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index