[Groonga-commit] groonga/groonga [master] [msgpack] fix array size of VECTOR output

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 14:00:43 JST


Yoji SHIDARA	2012-08-09 14:00:43 +0900 (Thu, 09 Aug 2012)

  New Revision: 8f19aa06841f24769c3e61dad99e52d22d71881f
  https://github.com/groonga/groonga/commit/8f19aa06841f24769c3e61dad99e52d22d71881f

  Log:
    [msgpack] fix array size of VECTOR output

  Modified files:
    lib/output.c

  Modified: lib/output.c (+1 -1)
===================================================================
--- lib/output.c    2012-08-09 12:26:46 +0900 (bd02267)
+++ lib/output.c    2012-08-09 14:00:43 +0900 (e113758)
@@ -901,7 +901,7 @@ grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
       grn_obj value;
       GRN_VOID_INIT(&value);
       n = grn_vector_size(ctx, obj);
-      grn_output_array_open(ctx, outbuf, output_type, "VECTOR", -1);
+      grn_output_array_open(ctx, outbuf, output_type, "VECTOR", n);
       for (i = 0; i < n; i++) {
         const char *_value;
         unsigned int weight, length;
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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