diff options
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 2e97713..e8447bb 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -514,7 +514,7 @@ static int complex_nonzero(v) PyComplexObject *v; { - return v->cval.real != 0.0 && v->cval.imag != 0.0; + return v->cval.real != 0.0 || v->cval.imag != 0.0; } static int |