Python builtin test fix for non-builtin
This commit is contained in:
parent
ed28e7cbe2
commit
333209595d
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ class ANumber {
|
|||
int num;
|
||||
public:
|
||||
ANumber(int d = 0) : num(d) {}
|
||||
ANumber __pow__(const ANumber &other, const ANumber *x) const {
|
||||
ANumber __pow__(const ANumber &other, const ANumber *x = 0) const {
|
||||
int val = (int)pow(num, other.num);
|
||||
val = x ? val % x->num : val;
|
||||
return ANumber(val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue