Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b4da59

Browse files
committed
Renamed static pow() to powerop() to avoid name conflict in some compilers.
1 parent d390102 commit 3b4da59

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/ceval.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static int call_trace
6868
PROTO((object **, object **, frameobject *, char *, object *));
6969
static object *add PROTO((object *, object *));
7070
static object *sub PROTO((object *, object *));
71-
static object *pow PROTO((object *, object *));
71+
static object *powerop PROTO((object *, object *));
7272
static object *mul PROTO((object *, object *));
7373
static object *divide PROTO((object *, object *));
7474
static object *mod PROTO((object *, object *));
@@ -665,7 +665,7 @@ eval_code2(co, globals, locals,
665665
case BINARY_POWER:
666666
w = POP();
667667
v = POP();
668-
x = pow(v, w);
668+
x = powerop(v, w);
669669
DECREF(v);
670670
DECREF(w);
671671
PUSH(x);
@@ -2201,11 +2201,11 @@ mod(v, w)
22012201
}
22022202

22032203
static object *
2204-
pow(v, w)
2204+
powerop(v, w)
22052205
object *v, *w;
22062206
{
22072207
object *res;
2208-
BINOP("__pow__", "__rpow__", pow);
2208+
BINOP("__pow__", "__rpow__", powerop);
22092209
if (v->ob_type->tp_as_number == NULL ||
22102210
w->ob_type->tp_as_number == NULL) {
22112211
err_setstr(TypeError, "pow() requires numeric arguments");

0 commit comments

Comments
 (0)