[Groonga-commit] groonga/groonga at c5e344e [master] mrb: accept Operator object for :mode value

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 2 13:22:45 JST 2015


Kouhei Sutou	2015-04-02 13:22:45 +0900 (Thu, 02 Apr 2015)

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

  Message:
    mrb: accept Operator object for :mode value

  Modified files:
    lib/mrb/mrb_index_column.c

  Modified: lib/mrb/mrb_index_column.c (+2 -1)
===================================================================
--- lib/mrb/mrb_index_column.c    2015-04-02 13:19:08 +0900 (e519f64)
+++ lib/mrb/mrb_index_column.c    2015-04-02 13:22:45 +0900 (eb85ff9)
@@ -26,6 +26,7 @@
 
 #include "mrb_converter.h"
 #include "mrb_index_column.h"
+#include "mrb_operator.h"
 #include "mrb_options.h"
 
 static struct mrb_data_type mrb_grn_index_column_type = {
@@ -93,7 +94,7 @@ mrb_grn_index_column_estimate_size_for_query(mrb_state *mrb, mrb_value self)
 
     mrb_mode = grn_mrb_options_get_lit(mrb, mrb_options, "mode");
     if (!mrb_nil_p(mrb_mode)) {
-      optarg.mode = mrb_fixnum(mrb_mode);
+      optarg.mode = grn_mrb_value_to_operator(mrb, mrb_mode);
     }
   }
 
-------------- next part --------------
HTML����������������������������...
Descargar 



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