Navigation Menu

Skip to content

Commit

Permalink
Fix wrong casts
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 27, 2012
1 parent 77fe51a commit 2e66c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/expr.c
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 2e66c71

Please sign in to comment.