Navigation Menu

Skip to content

Commit

Permalink
mrb: accept Operator object for :mode value
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 2, 2015
1 parent 147c4af commit c5e344e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mrb/mrb_index_column.c
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit c5e344e

Please sign in to comment.