diff options
author | Guido van Rossum <guido@python.org> | 1996-09-12 21:02:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-12 21:02:02 (GMT) |
commit | 24048580ca44130cf6250abded6d9592c7befaa8 (patch) | |
tree | 6e882accba3e5bc28bdb51aae79ec7e67d8fb6f4 /Objects | |
parent | 3be12e97cdcfc1c60ad482ea156c871d7ab01ce6 (diff) | |
download | cpython-24048580ca44130cf6250abded6d9592c7befaa8.zip cpython-24048580ca44130cf6250abded6d9592c7befaa8.tar.gz cpython-24048580ca44130cf6250abded6d9592c7befaa8.tar.bz2 |
Oops... Need to clear c_error before calling c_quot().
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index b44039c..e7d0898 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -376,6 +376,7 @@ complex_remainder(v, w) complexobject *w; { Py_complex div, mod; + c_error = 0; div = c_quot(v->cval,w->cval); /* The raw divisor value. */ if (c_error == 1) { err_setstr(ZeroDivisionError, "complex remainder"); @@ -396,6 +397,7 @@ complex_divmod(v, w) { Py_complex div, mod; PyObject *d, *m, *z; + c_error = 0; div = c_quot(v->cval,w->cval); /* The raw divisor value. */ if (c_error == 1) { err_setstr(ZeroDivisionError, "complex divmod()"); |