summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index eebeacd..b6d4dda 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -806,7 +806,7 @@ PySequence_Tuple(s)
for(i=0; i < l; i++)
{
- if(((item=PySequence_GetItem(s,i))) ||
+ if(!(item=PySequence_GetItem(s,i)) ||
PyTuple_SetItem(t,i,item) == -1)
{
Py_DECREF(t);
@@ -830,7 +830,7 @@ PySequence_List(s)
for(i=0; i < l; i++)
{
- if((item=PySequence_GetItem(s,i)) ||
+ if(!(item=PySequence_GetItem(s,i)) ||
PyList_SetItem(t,i,item) == -1)
{
Py_DECREF(t);