Fix macros in hashtable.h

Add parenthesis.
This commit is contained in:
Victor Stinner 2016-03-23 00:18:36 +01:00
parent 35b0fd74dd
commit 060f9bb602
1 changed files with 2 additions and 2 deletions

View File

@ -146,10 +146,10 @@ PyAPI_FUNC(int) _Py_hashtable_set(
const void *data); const void *data);
#define _Py_HASHTABLE_SET(TABLE, KEY, 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) \ #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. /* Get an entry.