Python builtin test fix for non-builtin

This commit is contained in:
William S Fulton 2018-09-19 23:33:16 +01:00
commit 333209595d

View file

@ -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);