Skip to content

Commit

Permalink
mruby: support float bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
naoa committed Jul 24, 2016
1 parent a4a9502 commit 3d25fc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/mrb/mrb_bulk.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ grn_mrb_value_from_bulk(mrb_state *mrb, grn_obj *bulk)
}
}
break;
case GRN_DB_FLOAT :
{
double value;
value = GRN_FLOAT_VALUE(bulk);
mrb_value_ = mrb_float_value(mrb, value);
}
break;
case GRN_DB_TIME :
{
int64_t value;
Expand Down

0 comments on commit 3d25fc5

Please sign in to comment.