[Groonga-commit] groonga/groonga at 2674717 [master] between: fix too much cast

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 20 00:30:21 JST 2013


Kouhei Sutou	2013-12-20 00:30:21 +0900 (Fri, 20 Dec 2013)

  New Revision: 267471757cefec34913916f4efa5b0d325adba01
  https://github.com/groonga/groonga/commit/267471757cefec34913916f4efa5b0d325adba01

  Message:
    between: fix too much cast

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -2)
===================================================================
--- lib/proc.c    2013-12-20 00:19:41 +0900 (0cff21c)
+++ lib/proc.c    2013-12-20 00:30:21 +0900 (97b8ffc)
@@ -4333,7 +4333,7 @@ selector_between(grn_ctx *ctx, grn_obj *table, grn_obj *index,
   }
 
   index_table = grn_ctx_at(ctx, index->header.domain);
-  if (data.min->header.type == index_table->header.domain) {
+  if (data.min->header.domain == index_table->header.domain) {
     used_min = data.min;
   } else {
     used_min = &casted_min;
@@ -4343,7 +4343,7 @@ selector_between(grn_ctx *ctx, grn_obj *table, grn_obj *index,
       goto exit;
     }
   }
-  if (data.max->header.type == index_table->header.domain) {
+  if (data.max->header.domain == index_table->header.domain) {
     used_max = data.max;
   } else {
     used_max = &casted_max;
-------------- next part --------------
HTML����������������������������...
下载 



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