Backport 58332: Fix Coverity #159.
This code was broken if save() returned a negative number since i contained
a boolean value and then we compared i < 0 which should never be true.
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index dd9887b..b552a40 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -2249,7 +2249,7 @@
Py_INCREF(temp);
PyTuple_SET_ITEM(newargtup, i-1, temp);
}
- i = save(self, newargtup, 0) < 0;
+ i = save(self, newargtup, 0);
Py_DECREF(newargtup);
if (i < 0)
return -1;