EOSIO / EOSIO/fc

int64 over 0xffffffff (negative) are not stringified when encoded to JSON

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
39
Forks
93
PR merge metrics
No merged PRs in 30d

Description

A json-serialized `uint64` gets swapped for a string over 0xffffffff, but not when a int64 has a larger than 32 bits value, but is negative.

That's in https://github.com/EOSIO/fc/blob/master/src/io/json.cpp#L614

Example:

```
"int64": -2714170076832633519,
"uint64": "2714170076832633519",
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.