From 10b6e2cec2c90e81ce17899dc2a5cf06b1d7c1a5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 23 Mar 2016 00:18:36 +0100 Subject: Fix macros in hashtable.h Add parenthesis. --- Modules/hashtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/hashtable.h') diff --git a/Modules/hashtable.h b/Modules/hashtable.h index 41542d279e..4199aab314 100644 --- a/Modules/hashtable.h +++ b/Modules/hashtable.h @@ -146,10 +146,10 @@ PyAPI_FUNC(int) _Py_hashtable_set( const void *data); #define _Py_HASHTABLE_SET(TABLE, KEY, DATA) \ - _Py_hashtable_set(TABLE, sizeof(KEY), &KEY, sizeof(DATA), &(DATA)) + _Py_hashtable_set(TABLE, sizeof(KEY), &(KEY), sizeof(DATA), &(DATA)) #define _Py_HASHTABLE_SET_NODATA(TABLE, KEY) \ - _Py_hashtable_set(TABLE, sizeof(KEY), &KEY, 0, NULL) + _Py_hashtable_set(TABLE, sizeof(KEY), &(KEY), 0, NULL) /* Get an entry. -- cgit v1.2.1