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

ReadInteger parses to 32-bit, not 16 #101

Open
jsimonian opened this issue Aug 13, 2015 · 0 comments
Open

ReadInteger parses to 32-bit, not 16 #101

jsimonian opened this issue Aug 13, 2015 · 0 comments

Comments

@jsimonian
Copy link

Not an issue, but some useful magic: The command "I WANT TO ASK YOU A BUNCH OF QUESTIONS AND I WANT TO HAVE THEM ANSWERED IMMEDIATELY" parses input to a 32 bit integer, not a 16 bit as described in the wiki. Moreover, performing operations on values created by parsing can be used to generate new 32 bit integers.

That is, if you were to parse 100000 as a value Val, define a new value Val2, set Val2 equal to Val * 2, and then print Val2, the value printed would be 200000, whereas simply defining a new value Val3 as 200000 and then printing Val3 will result in an integer overflow (as expected) and will print 3392. (Example)

@jsimonian jsimonian changed the title ParseError parses to 32-bit, not 16 ReadInteger parses to 32-bit, not 16 Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant