summaryrefslogtreecommitdiffstats
path: root/core/table.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/table.h')
-rw-r--r--core/table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/table.h b/core/table.h
index 0f168f4bc..d12a711eb 100644
--- a/core/table.h
+++ b/core/table.h
@@ -72,8 +72,8 @@
#define MAKE_SORT(table_type, item_type, array_name, fun) \
static int sortfn_##table_type(const void *_a, const void *_b) \
{ \
- const item_type a = (const item_type)*(const void **)_a; \
- const item_type b = (const item_type)*(const void **)_b; \
+ const item_type a = *(const item_type *)_a; \
+ const item_type b = *(const item_type *)_b; \
return fun(a, b); \
} \
\