[Groonga-commit] groonga/groonga [master] Fix wrong casts

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Aug 27 10:15:35 JST 2012


Kouhei Sutou	2012-08-27 10:15:35 +0900 (Mon, 27 Aug 2012)

  New Revision: 2e66c7162f52b9b7b060647d396c4eb45fa0b375
  https://github.com/groonga/groonga/commit/2e66c7162f52b9b7b060647d396c4eb45fa0b375

  Log:
    Fix wrong casts

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+2 -2)
===================================================================
--- lib/expr.c    2012-08-27 10:08:30 +0900 (045beb8)
+++ lib/expr.c    2012-08-27 10:15:35 +0900 (b993040)
@@ -4266,7 +4266,7 @@ grn_table_select(grn_ctx *ctx, grn_obj *table, grn_obj *expr,
               if (si->flags & SCAN_ACCESSOR) {
               } else if (selector_proc_p(si->args[0])) {
                 grn_rc rc;
-                grn_proc *proc = (grn_obj *)(si->args[0]);
+                grn_proc *proc = (grn_proc *)(si->args[0]);
                 rc = proc->selector(ctx, table, index, si->nargs, si->args,
                                     res, si->logical_op);
                 if (rc) {
@@ -4286,7 +4286,7 @@ grn_table_select(grn_ctx *ctx, grn_obj *table, grn_obj *expr,
             case GRN_OP_CALL :
               if (selector_proc_p(si->args[0])) {
                 grn_rc rc;
-                grn_proc *proc = (grn_obj *)(si->args[0]);
+                grn_proc *proc = (grn_proc *)(si->args[0]);
                 rc = proc->selector(ctx, table, NULL, si->nargs, si->args,
                                     res, si->logical_op);
                 if (rc) {
-------------- next part --------------
HTML����������������������������...
Download 



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