diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-14 12:54:28 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-14 12:54:28 +0000 |
| commit | 10f91a0d3f64902687683ac53dd286b25d3f7d5e (patch) | |
| tree | 5dc14dbe3eddb3a61d864a96407508dbca92b9c7 /core/encoding | |
| parent | 8cc4cba06c31c09b04a7012703eb3c4be03729e2 (diff) | |
Make base32 and base64 adhere to `-strict-style`
Diffstat (limited to 'core/encoding')
| -rw-r--r-- | core/encoding/base32/base32.odin | 4 | ||||
| -rw-r--r-- | core/encoding/base64/base64.odin | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/encoding/base32/base32.odin b/core/encoding/base32/base32.odin index 82dfb9422..4e0e948e3 100644 --- a/core/encoding/base32/base32.odin +++ b/core/encoding/base32/base32.odin @@ -11,7 +11,7 @@ ENC_TABLE := [32]byte { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
- 'Y', 'Z', '2', '3', '4', '5', '6', '7'
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
};
PADDING :: '=';
@@ -30,7 +30,7 @@ DEC_TABLE := [?]u8 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
encode :: proc(data: []byte, ENC_TBL := ENC_TABLE, allocator := context.allocator) -> string {
diff --git a/core/encoding/base64/base64.odin b/core/encoding/base64/base64.odin index 744d28903..7c17a2860 100644 --- a/core/encoding/base64/base64.odin +++ b/core/encoding/base64/base64.odin @@ -15,7 +15,7 @@ ENC_TABLE := [64]byte { 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', - '4', '5', '6', '7', '8', '9', '+', '/' + '4', '5', '6', '7', '8', '9', '+', '/', }; PADDING :: '='; @@ -36,7 +36,7 @@ DEC_TABLE := [128]int { -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, - 49, 50, 51, -1, -1, -1, -1, -1 + 49, 50, 51, -1, -1, -1, -1, -1, }; encode :: proc(data: []byte, ENC_TBL := ENC_TABLE, allocator := context.allocator) -> string #no_bounds_check { |