aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-01-09 23:43:34 +0000
committergingerBill <bill@gingerbill.org>2021-01-09 23:43:34 +0000
commit3bcccf88d578360bcc97e5903b316b2cfac39b03 (patch)
tree0ae3f1f1ff2ced7b80fa23fe949443c90b92935a /core/encoding
parent9e8c46b8de123829f26c2e92fcaf15a81c9b6b01 (diff)
vet all core packages
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/base32/base32.odin1
-rw-r--r--core/encoding/cel/cel.odin4
-rw-r--r--core/encoding/json/marshal.odin1
3 files changed, 2 insertions, 4 deletions
diff --git a/core/encoding/base32/base32.odin b/core/encoding/base32/base32.odin
index dad9d3e04..82dfb9422 100644
--- a/core/encoding/base32/base32.odin
+++ b/core/encoding/base32/base32.odin
@@ -97,7 +97,6 @@ decode :: proc(data: string, DEC_TBL := DEC_TABLE, allocator := context.allocato
}
outi := 0;
- olen := len(data);
data := data;
out := make([]byte, len(data) / 8 * 5, allocator);
diff --git a/core/encoding/cel/cel.odin b/core/encoding/cel/cel.odin
index 897b4adfd..f0cd49866 100644
--- a/core/encoding/cel/cel.odin
+++ b/core/encoding/cel/cel.odin
@@ -677,9 +677,9 @@ match_values :: proc(left, right: ^Value) -> bool {
return false;
}
-calculate_binary_value :: proc(p: ^Parser, op: Kind, a, b: Value) -> (Value, bool) {
+calculate_binary_value :: proc(p: ^Parser, op: Kind, a_, b_: Value) -> (Value, bool) {
// TODO(bill): Calculate value as you go!
- x, y := a, b;
+ x, y := a_, b_;
match_values(&x, &y);
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin
index 7bdc3abc3..9d5f04355 100644
--- a/core/encoding/json/marshal.odin
+++ b/core/encoding/json/marshal.odin
@@ -5,7 +5,6 @@ import "core:math/bits"
import "core:runtime"
import "core:strconv"
import "core:strings"
-import "core:reflect"
Marshal_Error :: enum {
None,