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

Error upon using inputted value as number #24

Open
JWinslow23 opened this issue Sep 6, 2018 · 2 comments
Open

Error upon using inputted value as number #24

JWinslow23 opened this issue Sep 6, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@JWinslow23
Copy link

JWinslow23 commented Sep 6, 2018

After running a primality tester written in Rockstar, the generated file is erroring on this line (the_storm is in inputted value):
if the_storm <= a_pair * a_pair: TypeError: '<=' not supported between instances of 'str' and 'int'
This seems to be because Python is treating the_storm as a string instead of an int.

@yyyyyyyan
Copy link
Owner

That's because weak typing is not oficially supported yet, according to rockstar specks. However, I'm going to solve that based on this PR. Thanks for pointing it out!

@yyyyyyyan yyyyyyyan added the bug Something isn't working label Sep 6, 2018
@JWinslow23
Copy link
Author

For the moment, I've made a tweak to my personal copy of it by making it cast to an int if possible.

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