Oops... Need to clear c_error before calling c_quot().

This commit is contained in:
Guido van Rossum 1996-09-12 21:02:02 +00:00
parent 3be12e97cd
commit 24048580ca
1 changed files with 2 additions and 0 deletions

View File

@ -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()");