diff options
| author | gingerBill <bill@gingerbill.org> | 2019-05-28 12:52:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-05-28 12:52:20 +0100 |
| commit | fb3d73cb204e886e0d716f529a64d9549f43c36d (patch) | |
| tree | 5bc3b1747b7ab34d1257427a7cbc10af38340963 /core/encoding/cel | |
| parent | 222941727f2b094449838135c3157120e0176e58 (diff) | |
Make core library use `a..<b` rather than doing `a..b-1`
Diffstat (limited to 'core/encoding/cel')
| -rw-r--r-- | core/encoding/cel/cel.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/cel/cel.odin b/core/encoding/cel/cel.odin index 631157d3c..3011b1257 100644 --- a/core/encoding/cel/cel.odin +++ b/core/encoding/cel/cel.odin @@ -32,7 +32,7 @@ Parser :: struct { print_value :: proc(value: Value, pretty := true, indent := 0) { print_indent :: proc(indent: int) { - for _ in 0..indent-1 do fmt.print("\t"); + for _ in 0..<indent do fmt.print("\t"); } switch v in value { @@ -237,7 +237,7 @@ unquote_char :: proc(s: string, quote: byte) -> (r: rune, multiple_bytes: bool, if len(s) < 2 { return; } - for i in 0..len(s)-1 { + for i in 0..<len(s) { d := int(s[i]-'0'); if d < 0 || d > 7 { return; @@ -262,7 +262,7 @@ unquote_char :: proc(s: string, quote: byte) -> (r: rune, multiple_bytes: bool, return; } - for i in 0..count-1 { + for i in 0..<count { d := hex_to_int(s[i]); if d < 0 { return; |