summaryrefslogtreecommitdiffhomepage
path: root/stc/ccommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'stc/ccommon.h')
-rw-r--r--stc/ccommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stc/ccommon.h b/stc/ccommon.h
index 75567256..3cda038d 100644
--- a/stc/ccommon.h
+++ b/stc/ccommon.h
@@ -76,7 +76,7 @@
#endif
#define c_swap(T, x, y) do { T __t = x; x = y; y = __t; } while (0)
#define c_no_compare(x, y) (0)
-#define c_mem_equals(x, y) (memcmp(x, y, sizeof(*(y))) == 0)
+#define c_mem_equals(x, y) (memcmp(x, y, sizeof *(x)) == 0)
#define c_default_equals(x, y) (*(x) == *(y))
#define c_default_less(x, y) (*(x) < *(y))
#define c_less_compare(less, x, y) (less(y, x) - less(x, y))