Don't left shift negative values.  Use an unsigned value instead to avoid
undefined behavior.
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 91f3ee7..89448a6 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -3448,7 +3448,7 @@
      * to extend a BININT's sign bit to the full width.
      */
     if (x == 4 && l & (1L << 31))
-        l |= (~0L) << 32;
+        l |= (~0UL) << 32;
 #endif
     return l;
 }