[Groonga-commit] groonga/groonga [master] [test] fix wrong value type for NULL.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 20日 (火) 10:21:38 JST


Kouhei Sutou	2011-12-20 01:21:38 +0000 (Tue, 20 Dec 2011)

  New Revision: ea306a0be015db2a91bac7089fdc97defac2c406

  Log:
    [test] fix wrong value type for NULL.

  Modified files:
    test/unit/core/test-table-select.c

  Modified: test/unit/core/test-table-select.c (+2 -2)
===================================================================
--- test/unit/core/test-table-select.c    2011-12-20 01:21:00 +0000 (098d60f)
+++ test/unit/core/test-table-select.c    2011-12-20 01:21:38 +0000 (273d10a)
@@ -380,8 +380,8 @@ test_search(void)
   GRN_UINT32_SET(&context, &int_buf, GRN_TABLE_HASH_KEY|GRN_OBJ_WITH_SUBREC);
   grn_expr_append_const(&context, expr, &int_buf, GRN_OP_PUSH, 1);
   grn_expr_append_obj(&context, expr, docs, GRN_OP_PUSH, 1);
-  GRN_UINT32_SET(&context, &int_buf, 0);
-  grn_expr_append_const(&context, expr, &int_buf, GRN_OP_PUSH, 1);
+  GRN_PTR_SET(&context, &ptr_buf, NULL);
+  grn_expr_append_obj(&context, expr, &ptr_buf, GRN_OP_PUSH, 1);
   grn_expr_append_op(&context, expr, GRN_OP_TABLE_CREATE, 4);
 
   grn_expr_append_op(&context, expr, GRN_OP_ASSIGN, 2);




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