Skip to content

Commit

Permalink
fix void* arithmetic compilation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit ce61fb0)
  • Loading branch information
Loic Dachary committed Mar 30, 2014
1 parent c702867 commit f387996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gf_w128.c
Expand Up @@ -1556,7 +1556,7 @@ int gf_w128_group_init(gf_t *gf)
g_r = scratch->arg2;
size_r = (1 << g_r);

gt->r_table = scratch->private + (2 * sizeof(uint64_t *));
gt->r_table = (gf_val_128_t)((char*)scratch->private + (2 * sizeof(uint64_t *)));
gt->m_table = gt->r_table + size_r;
gt->m_table[2] = 0;
gt->m_table[3] = 0;
Expand Down

0 comments on commit f387996

Please sign in to comment.