diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-09 11:54:36 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-09 11:54:36 +0100 |
| commit | e8f2fb58d95383f6844d23a56c8dfa495093fd7e (patch) | |
| tree | 13370ffdb0e2872c0d15b365dde3f4293ea80cd7 /core/encoding/json/parser.odin | |
| parent | dc1b3cc56316c966b8fab1a66ca7cc8e82306ee4 (diff) | |
Fix `strconv.parse_` usage across other packages
Diffstat (limited to 'core/encoding/json/parser.odin')
| -rw-r--r-- | core/encoding/json/parser.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/encoding/json/parser.odin b/core/encoding/json/parser.odin index 8503edd98..0762e42c1 100644 --- a/core/encoding/json/parser.odin +++ b/core/encoding/json/parser.odin @@ -85,11 +85,13 @@ parse_value :: proc(p: ^Parser) -> (value: Value, err: Error) { return; case Kind.Integer: - value.value = Integer(strconv.parse_i64(token.text)); + i, _ := strconv.parse_i64(token.text); + value.value = Integer(i); advance_token(p); return; case Kind.Float: - value.value = Float(strconv.parse_f64(token.text)); + f, _ := strconv.parse_f64(token.text); + value.value = Float(f); advance_token(p); return; case Kind.String: |