summaryrefslogtreecommitdiff
path: root/Modules/hashtable.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 00:18:36 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 00:18:36 +0100
commit10b6e2cec2c90e81ce17899dc2a5cf06b1d7c1a5 (patch)
tree0c5850d65a7d9c7b37c7ac6a49e9f29bd4c1ee3e /Modules/hashtable.h
parentf7ecc3efa2c258bd7e6a271070b6c4554bfaf7c5 (diff)
downloadcpython-10b6e2cec2c90e81ce17899dc2a5cf06b1d7c1a5.tar.gz
Fix macros in hashtable.h
Add parenthesis.
Diffstat (limited to 'Modules/hashtable.h')
-rw-r--r--Modules/hashtable.h4
1 files changed, 2 insertions, 2 deletions
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.