Skip to content
New issue

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

accessing #factdollar factors causes program termination #222

Closed
spj101 opened this issue Jul 14, 2017 · 1 comment
Closed

accessing #factdollar factors causes program termination #222

spj101 opened this issue Jul 14, 2017 · 1 comment
Labels
bug Something isn't working

Comments

@spj101
Copy link
Contributor

spj101 commented Jul 14, 2017

On commit 3767258 if I try to factorise an expression containing only an integer, the number of factors reported is 1 but accessing factor 1 causes the program to terminate.

Input:

#-
Symbol x;
#$a = 1;  * Error
*#$a = x;  * Fine
#factdollar $a;
#write "Number of factors in `$a' is `$a[0]'"
#write "Factor 1 is `$a[1]'"
.end

Output:

FORM 4.2.0 (Jul 13 2017, v4.2.0-10-g3767258) 64-bits  Run: Fri Jul 14 16:00:02 2017
    #-
Number of factors in 1 is 1
Program terminating at test.frm Line 3 -->
  0.00 sec out of 0.00 sec
vermaseren added a commit that referenced this issue Jul 14, 2017
@spj101
Copy link
Contributor Author

spj101 commented Jul 14, 2017

Thanks on commit 2bbb45f this is working for me!

@tueda tueda added the bug Something isn't working label Jul 14, 2017
tueda added a commit that referenced this issue Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants