[Groonga-commit] ranguba/rroonga at fa9202d [master] Fix Ruby -> C conversion of :max_n_sub_records of Table#group

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Mar 21 00:04:13 JST 2014


Kouhei Sutou	2014-03-21 00:04:13 +0900 (Fri, 21 Mar 2014)

  New Revision: fa9202d19c56f2e5835bf22c47045dc99dd10924
  https://github.com/ranguba/rroonga/commit/fa9202d19c56f2e5835bf22c47045dc99dd10924

  Message:
    Fix Ruby -> C conversion of :max_n_sub_records of Table#group

  Modified files:
    ext/groonga/rb-grn-table.c

  Modified: ext/groonga/rb-grn-table.c (+3 -2)
===================================================================
--- ext/groonga/rb-grn-table.c    2014-03-14 16:27:22 +0900 (24543f6)
+++ ext/groonga/rb-grn-table.c    2014-03-21 00:04:13 +0900 (2e51eb0)
@@ -1283,7 +1283,8 @@ rb_grn_table_group (int argc, VALUE *argv, VALUE self)
     grn_obj *table;
     grn_table_sort_key *keys;
     grn_table_group_result *results;
-    int i, n_keys, n_results, max_n_sub_records = 0;
+    int i, n_keys, n_results;
+    unsigned int max_n_sub_records = 0;
     grn_rc rc;
     VALUE rb_keys, rb_options, rb_max_n_sub_records;
     VALUE *rb_group_keys;
@@ -1309,7 +1310,7 @@ rb_grn_table_group (int argc, VALUE *argv, VALUE self)
                         NULL);
 
     if (!NIL_P(rb_max_n_sub_records))
-        max_n_sub_records = NUM2INT(rb_max_n_sub_records);
+        max_n_sub_records = NUM2UINT(rb_max_n_sub_records);
 
     keys = ALLOCA_N(grn_table_sort_key, n_keys);
     for (i = 0; i < n_keys; i++) {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index