We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The expt function does not manage the stack correctly. This fixes it for me:
expt
static void primop_expt(long arg) { double tmp = the_double(1,sp[0]); tmp = pow(tmp,the_double(2,sp[1])); *++sp = make_flonum(tmp); }
Note the addition of ++.
++
The text was updated successfully, but these errors were encountered:
Test case at prompt:
(- (expt 2 29) 1)
Gives 536870883 but should be 536870911.
Sorry, something went wrong.
No branches or pull requests
The
expt
function does not manage the stack correctly. This fixes it for me:Note the addition of
++
.The text was updated successfully, but these errors were encountered: