diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 23:18:36 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 23:18:36 (GMT) |
commit | 060f9bb6024580272440f57c612ca34d9beaa169 (patch) | |
tree | 1323bdc32b9387cc7408781d007648520a18683b | |
parent | 35b0fd74dd549b1593f0486e78e40b3da539ea0d (diff) | |
download | cpython-060f9bb6024580272440f57c612ca34d9beaa169.zip cpython-060f9bb6024580272440f57c612ca34d9beaa169.tar.gz cpython-060f9bb6024580272440f57c612ca34d9beaa169.tar.bz2 |
Fix macros in hashtable.h
Add parenthesis.
-rw-r--r-- | Modules/hashtable.h | 4 |
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. |