Navigation Menu

Skip to content

Commit

Permalink
Suppress wrong Visual C++ warning
Browse files Browse the repository at this point in the history
      lib\ts\ts_expr_node.c(2621): error C4090: 'function': different 'const' qualifiers
  • Loading branch information
kou committed Feb 8, 2018
1 parent ab01403 commit 6fd82e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ts/ts_expr_node.c
Expand Up @@ -2618,7 +2618,8 @@ grn_ts_expr_column_node_evaluate_text_vector(grn_ctx *ctx,
n_bytes = 0;
n_values = 0;
}
grn_memcpy(&out_ptr[i].ptr, &n_bytes, sizeof(n_bytes));
/* The cast is just for suppressing wrong Visual C++ warning. */
grn_memcpy((void *)(&out_ptr[i].ptr), &n_bytes, sizeof(n_bytes));
out_ptr[i].size = n_values;
total_n_bytes += n_bytes;
total_n_values += n_values;
Expand Down

0 comments on commit 6fd82e6

Please sign in to comment.