Change div() into divide(); div() is a Standard C function.

This commit is contained in:
Guido van Rossum 1990-12-20 23:03:11 +00:00
parent d05c4b2a7c
commit 40d0b7e904

View file

@ -154,7 +154,7 @@ mul(v, w)
} }
static object * static object *
div(v, w) divide(v, w)
object *v, *w; object *v, *w;
{ {
if (v->ob_type->tp_as_number != NULL) if (v->ob_type->tp_as_number != NULL)
@ -797,7 +797,7 @@ eval_code(co, globals, locals, arg)
case BINARY_DIVIDE: case BINARY_DIVIDE:
w = POP(); w = POP();
v = POP(); v = POP();
x = div(v, w); x = divide(v, w);
DECREF(v); DECREF(v);
DECREF(w); DECREF(w);
PUSH(x); PUSH(x);