mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Change div() into divide(); div() is a Standard C function.
This commit is contained in:
parent
d05c4b2a7c
commit
40d0b7e904
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue