Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Unexpected int too large error #885

Open
patiences opened this issue Aug 1, 2018 · 0 comments
Open

Unexpected int too large error #885

patiences opened this issue Aug 1, 2018 · 0 comments

Comments

@patiences
Copy link
Contributor

print(10000000000000000000)

results in a struct.error:

Traceback (most recent call last):
  File "/Users/Patience/Desktop/gsoc/voc/env/bin/voc", line 11, in <module>
    load_entry_point('voc', 'console_scripts', 'voc')()
  File "/Users/Patience/Desktop/gsoc/voc/voc/__main__.py", line 52, in main
    verbosity=args.verbosity
  File "/Users/Patience/Desktop/gsoc/voc/voc/transpiler.py", line 33, in transpile
    transpiler.write(outdir)
  File "/Users/Patience/Desktop/gsoc/voc/voc/transpiler.py", line 62, in write
    javaclassfile.write(out)
  File "/Users/Patience/Desktop/gsoc/voc/voc/java/klass.py", line 422, in write
    constant_pool.write(writer)
  File "/Users/Patience/Desktop/gsoc/voc/voc/java/constants.py", line 151, in write
    constant.write(writer)
  File "/Users/Patience/Desktop/gsoc/voc/voc/java/constants.py", line 211, in write
    self.write_info(writer)
  File "/Users/Patience/Desktop/gsoc/voc/voc/java/constants.py", line 697, in write_info
    writer.write_s8(self.value)
  File "/Users/Patience/Desktop/gsoc/voc/voc/java/klass.py", line 85, in write_s8
    self._outfile.write(struct.pack('>q', u8))
struct.error: int too large to convert

(Calling voc from the command line)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant