susumu.yata
null+****@clear*****
Thu Sep 24 19:22:32 JST 2015
susumu.yata 2015-09-24 19:22:32 +0900 (Thu, 24 Sep 2015) New Revision: 45adadc2ff25b5922b919e6894915b82568b8944 https://github.com/groonga/groonga/commit/45adadc2ff25b5922b919e6894915b82568b8944 Message: grn_ts: add a missing conversion with grn_ntoh() GitHub: #408 Modified files: lib/ts.c Modified: lib/ts.c (+1 -1) =================================================================== --- lib/ts.c 2015-09-24 18:01:55 +0900 (f9f8c36) +++ lib/ts.c 2015-09-24 19:22:32 +0900 (45485b7) @@ -1722,7 +1722,7 @@ grn_ts_expr_key_node_evaluate(grn_ctx *ctx, grn_ts_expr_key_node *node, id = (const grn_ts_id *)grn_ts_table_get_key(ctx, node->table, in[i].id, &key_size); if (id && (key_size == sizeof(*id))) { - out_ptr[i].id = *id; + grn_ntoh(&out_ptr[i].id, id, sizeof(*id)); out_ptr[i].score = in[i].score; } else { out_ptr[i] = grn_ts_ref_zero(); -------------- next part -------------- HTML����������������������������...Télécharger