]> granicus.if.org Git - python/commitdiff
Issue #19183: too many tests depend on the sort order of repr().
authorChristian Heimes <christian@cheimes.de>
Wed, 20 Nov 2013 11:49:05 +0000 (12:49 +0100)
committerChristian Heimes <christian@cheimes.de>
Wed, 20 Nov 2013 11:49:05 +0000 (12:49 +0100)
The bitshift and xor op for 32bit builds has changed the order of hash values.

Python/pyhash.c

index 158c631f6ba8c8838e60ad46702e987c81275396..19aeeb7143498b12460c4cfed972713209a8aa01 100644 (file)
@@ -415,9 +415,6 @@ siphash24(const void *src, Py_ssize_t src_sz) {
 
     /* modified */
     t = (v0 ^ v1) ^ (v2 ^ v3);
-#if SIZEOF_VOID_P == 4
-    t ^= (t >> 32);
-#endif
     return (Py_hash_t)t;
 }