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

Skip to content

Commit 75abc63

Browse files
committed
* Objects/{int,long,float}object.c, Include/object.h,
Python/bltinmodule.c: mods by Andrew Kuchling to implement pow(x,y,z) == pow(x,y)%z, but without incurring overflow
1 parent fba65fe commit 75abc63

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Include/object.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ method blocks.
135135

136136
typedef object * (*unaryfunc) PROTO((object *));
137137
typedef object * (*binaryfunc) PROTO((object *, object *));
138+
typedef object * (*ternaryfunc) PROTO((object *, object *, object *));
138139
typedef int (*inquiry) PROTO((object *));
139140
typedef int (*coercion) PROTO((object **, object **));
140141
typedef object *(*intargfunc) PROTO((object *, int));
@@ -150,7 +151,7 @@ typedef struct {
150151
binaryfunc nb_divide;
151152
binaryfunc nb_remainder;
152153
binaryfunc nb_divmod;
153-
binaryfunc nb_power;
154+
ternaryfunc nb_power;
154155
unaryfunc nb_negative;
155156
unaryfunc nb_positive;
156157
unaryfunc nb_absolute;

0 commit comments

Comments
 (0)