[Groonga-commit] groonga/groonga [master] [msgpack] this should be number of elements

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 20日 (火) 18:46:02 JST


Yoji SHIDARA	2011-12-20 09:46:02 +0000 (Tue, 20 Dec 2011)

  New Revision: fae352f63cd7273341a33cffa94d436afc24682e

  Log:
    [msgpack] this should be number of elements
    
    refs #1215

  Modified files:
    lib/output.c

  Modified: lib/output.c (+1 -2)
===================================================================
--- lib/output.c    2011-12-20 09:27:32 +0000 (aabbc83)
+++ lib/output.c    2011-12-20 09:46:02 +0000 (3436c71)
@@ -850,8 +850,7 @@ grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
       } else {
         grn_id *v = (grn_id *)GRN_BULK_HEAD(obj),
                *ve = (grn_id *)GRN_BULK_CURR(obj);
-        grn_output_array_open(ctx, outbuf, output_type, "VECTOR",
-                              GRN_BULK_VSIZE(obj));
+        grn_output_array_open(ctx, outbuf, output_type, "VECTOR", ve - v);
         if (v < ve) {
           grn_obj key;
           GRN_OBJ_INIT(&key, GRN_BULK, 0, range->header.domain);




Groonga-commit メーリングリストの案内
Back to archive index