Open verement opened 10 years ago
The following change to the numbers.c function do_power() is erroneous:
numbers.c
do_power()
- ans.v.num = (b % 2 == 0 ? 1 : -1); + ans.v.num = (b & 1) ? 1 : -1;
As a result, negative powers of −1 have the wrong sign.
The following change to the
numbers.c
functiondo_power()
is erroneous:As a result, negative powers of −1 have the wrong sign.