summaryrefslogtreecommitdiffstats
path: root/Python/hamt.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-01-25 19:18:55 (GMT)
committerGitHub <noreply@github.com>2018-01-25 19:18:55 (GMT)
commit6ab62920c87930dedc31fe633ecda3e51d3d7503 (patch)
tree41524fb4f9cf00dcbbb747780c952535113478d9 /Python/hamt.c
parentb31206a223955d614d7769f95fb979d60f77bf87 (diff)
downloadcpython-6ab62920c87930dedc31fe633ecda3e51d3d7503.zip
cpython-6ab62920c87930dedc31fe633ecda3e51d3d7503.tar.gz
cpython-6ab62920c87930dedc31fe633ecda3e51d3d7503.tar.bz2
bpo-32436: Fix a refleak; var GC tracking; a GCC warning (#5326)
The refleak in question wasn't really important, as context vars are usually created at the toplevel and live as long as the interpreter lives, so the context var name isn't ever GCed anyways.
Diffstat (limited to 'Python/hamt.c')
-rw-r--r--Python/hamt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/hamt.c b/Python/hamt.c
index df3b109..79c42c0 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -449,7 +449,7 @@ hamt_bitcount(uint32_t i)
*/
i = i - ((i >> 1) & 0x55555555);
i = (i & 0x33333333) + ((i >> 2) & 0x33333333);
- return ((i + (i >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;
+ return (((i + (i >> 4)) & 0xF0F0F0F) * 0x1010101) >> 24;
}
static inline uint32_t