cosmo0920
null+****@clear*****
Mon Sep 29 02:05:45 JST 2014
cosmo0920 2014-09-29 02:05:45 +0900 (Mon, 29 Sep 2014) New Revision: 0560f1545b84d7f7ed8ffbc27b1b0710c6c2a78c https://github.com/ranguba/rroonga/commit/0560f1545b84d7f7ed8ffbc27b1b0710c6c2a78c Message: use rb_to_symbol instead of ID2SYM Modified files: ext/groonga/rb-grn-utils.c Modified: ext/groonga/rb-grn-utils.c (+2 -2) =================================================================== --- ext/groonga/rb-grn-utils.c 2014-09-29 01:58:59 +0900 (5925b47) +++ ext/groonga/rb-grn-utils.c 2014-09-29 02:05:45 +0900 (77d5767) @@ -674,8 +674,8 @@ rb_grn_add_vector_element (VALUE rb_element, grn_ctx *context, grn_obj *vector, ID id_weight; CONST_ID(id_value, "value"); CONST_ID(id_weight, "weight"); - rb_value = rb_hash_aref(rb_element, ID2SYM(id_value)); - rb_weight = rb_hash_aref(rb_element, ID2SYM(id_weight)); + rb_value = rb_hash_aref(rb_element, rb_to_symbol(id_value)); + rb_weight = rb_hash_aref(rb_element, rb_to_symbol(id_weight)); RVAL2GRNOBJ(rb_value, context, &value_buffer); if (!NIL_P(rb_weight)) { weight = NUM2UINT(rb_weight); -------------- next part -------------- HTML����������������������������... Descargar