Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224bef2 commit 23f9f66Copy full SHA for 23f9f66
1 file changed
Include/internal/pycore_tuple.h
@@ -33,7 +33,11 @@ typedef struct {
33
PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */
34
} _PyTupleIterObject;
35
36
-#define _PyTuple_RESET_HASH_CACHE(op) (_PyTuple_CAST(op)->ob_hash = -1)
+#define _PyTuple_RESET_HASH_CACHE(op) \
37
+ do { \
38
+ assert(op != NULL); \
39
+ _PyTuple_CAST(op)->ob_hash = -1; \
40
+ } while (0)
41
42
/*
43
bpo-42536: If reusing a tuple object, this should be called to re-track it
0 commit comments