Kouhei Sutou
null+****@clear*****
Thu Apr 7 15:40:37 JST 2016
Kouhei Sutou 2016-04-07 15:40:37 +0900 (Thu, 07 Apr 2016) New Revision: 06640b907d6b14aab053dde0f726e37e2143bb73 https://github.com/groonga/groonga/commit/06640b907d6b14aab053dde0f726e37e2143bb73 Message: mrb: support GRN_BOOL -> mrb_value conversion Modified files: lib/mrb/mrb_bulk.c Modified: lib/mrb/mrb_bulk.c (+7 -1) =================================================================== --- lib/mrb/mrb_bulk.c 2016-04-07 15:28:18 +0900 (5d3550d) +++ lib/mrb/mrb_bulk.c 2016-04-07 15:40:37 +0900 (c4e7111) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* - Copyright(C) 2014-2015 Brazil + Copyright(C) 2014-2016 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -97,6 +97,12 @@ grn_mrb_value_from_bulk(mrb_state *mrb, grn_obj *bulk) } switch (bulk->header.domain) { + case GRN_DB_BOOL : + { + grn_bool value; + value = GRN_BOOL_VALUE(bulk); + mrb_value_ = mrb_bool_value(value); + } case GRN_DB_INT32 : { int32_t value; -------------- next part -------------- HTML����������������������������...Download