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/cel | |
| parent | dc1b3cc56316c966b8fab1a66ca7cc8e82306ee4 (diff) | |
Fix `strconv.parse_` usage across other packages
Diffstat (limited to 'core/encoding/cel')
| -rw-r--r-- | core/encoding/cel/cel.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/encoding/cel/cel.odin b/core/encoding/cel/cel.odin index ead61c05e..f794f32f3 100644 --- a/core/encoding/cel/cel.odin +++ b/core/encoding/cel/cel.odin @@ -427,11 +427,13 @@ parse_operand :: proc(p: ^Parser) -> (Value, Pos) { case .Integer: next_token(p); - return strconv.parse_i64(tok.lit), tok.pos; + i, _ := strconv.parse_i64(tok.lit); + return i, tok.pos; case .Float: next_token(p); - return strconv.parse_f64(tok.lit), tok.pos; + f, _ := strconv.parse_f64(tok.lit); + return f, tok.pos; case .String: next_token(p); |