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

thread 'main' panicked at 'attempt to shift left with overflow' #6

Closed
jyn514 opened this issue Jan 18, 2020 · 0 comments · Fixed by #14
Closed

thread 'main' panicked at 'attempt to shift left with overflow' #6

jyn514 opened this issue Jan 18, 2020 · 0 comments · Fixed by #14

Comments

@jyn514
Copy link

jyn514 commented Jan 18, 2020

hexf panics on the following code:

hexf_parse::parse_hexf64("0x.000000000000000000102");

The backtrace points to this line: https://github.com/lifthrasiir/hexf/blob/master/parse/src/lib.rs#L138

It looks like you try to catch the error the line before, I'm not sure why it still keeps going: https://github.com/lifthrasiir/hexf/blob/master/parse/src/lib.rs#L135

Backtrace
thread 'main' panicked at 'attempt to shift left with overflow', /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/hexf-parse-0.1.0/src/lib.rs:138:19
... panic code ...
  15: hexf_parse::parse
             at /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/hexf-parse-0.1.0/src/lib.rs:138
  16: hexf_parse::parse_hexf64
             at /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/hexf-parse-0.1.0/src/lib.rs:394
... my code ...
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

Successfully merging a pull request may close this issue.

1 participant