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

'arithmetic operation overflowed' when reading "-0" as JSON #36

Closed
tonyg opened this issue Feb 10, 2016 · 2 comments
Closed

'arithmetic operation overflowed' when reading "-0" as JSON #36

tonyg opened this issue Feb 10, 2016 · 2 comments
Labels

Comments

@tonyg
Copy link

tonyg commented Feb 10, 2016

Running this program:

extern crate serde_json;
fn main() {
    serde_json::from_str::<serde_json::Value>("-0").unwrap();
}

causes:

thread '<main>' panicked at 'arithmetic operation overflowed', [...]/.cargo/registry/src/github.com-88ac128001ac3a9a/serde_json-0.6.0/src/de.rs:289

whereas I expected it to run to completion successfully with no output.

@nixpulvis
Copy link
Contributor

See #35

@erickt
Copy link
Member

erickt commented Feb 27, 2016

This was closed in #35.

@erickt erickt closed this as completed Feb 27, 2016
@dtolnay dtolnay added the bug label May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants