summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-15 21:17:38 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-15 21:17:38 (GMT)
commit12174a5dcaf1bdcd8d5fd790a8cad07049bddce6 (patch)
treecd7632afadd1043e9708251c220e872639b767dc /Objects/setobject.c
parent98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90 (diff)
downloadcpython-12174a5dcaf1bdcd8d5fd790a8cad07049bddce6.zip
cpython-12174a5dcaf1bdcd8d5fd790a8cad07049bddce6.tar.gz
cpython-12174a5dcaf1bdcd8d5fd790a8cad07049bddce6.tar.bz2
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Objects/ subdirectory. PyType_FromSpecWithBases() and PyType_FromSpec() now reject explicitly negative slot identifiers.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index dff1597..8f7542c 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -771,7 +771,7 @@ frozenset_hash(PyObject *self)
/* Make the final result spread-out in a different pattern
than the algorithm for tuples or other python objects. */
hash = hash * 69069U + 907133923UL;
- if (hash == -1)
+ if (hash == (Py_uhash_t)-1)
hash = 590923713UL;
so->hash = hash;
return hash;