summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 23:18:36 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 23:18:36 (GMT)
commit060f9bb6024580272440f57c612ca34d9beaa169 (patch)
tree1323bdc32b9387cc7408781d007648520a18683b
parent35b0fd74dd549b1593f0486e78e40b3da539ea0d (diff)
downloadcpython-060f9bb6024580272440f57c612ca34d9beaa169.zip
cpython-060f9bb6024580272440f57c612ca34d9beaa169.tar.gz
cpython-060f9bb6024580272440f57c612ca34d9beaa169.tar.bz2
Fix macros in hashtable.h
Add parenthesis.
-rw-r--r--Modules/hashtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/hashtable.h b/Modules/hashtable.h
index 41542d2..4199aab 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.