[Groonga-commit] groonga/groonga [master] revert grn_geo_in_rectangle() implementation change.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 5日 (木) 10:18:41 JST


Kouhei Sutou	2010-08-05 01:18:41 +0000 (Thu, 05 Aug 2010)

  New Revision: 4b02800ea6362818d800890857cfb3c9fcf443c4

  Log:
    revert grn_geo_in_rectangle() implementation change.
    
    See #414. After reverting this, the behavior isn't different from document.

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+1 -1)
===================================================================
--- lib/geo.c    2010-08-05 01:02:20 +0000 (1568c2f)
+++ lib/geo.c    2010-08-05 01:18:41 +0000 (c9991cc)
@@ -104,7 +104,7 @@ grn_geo_in_rectangle(grn_ctx *ctx, grn_obj *point,
     GRN_GEO_POINT_VALUE(top_left, lat1, lng1);
     GRN_GEO_POINT_VALUE(bottom_right, lat2, lng2);
     r = ((lng1 <= lng0) && (lng0 <= lng2) &&
-         (lat2 <= lat0) && (lat0 <= lat1));
+         (lat1 <= lat0) && (lat0 <= lat2));
   } else {
     /* todo */
   }




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