diff options
| author | gingerBill <bill@gingerbill.org> | 2021-06-14 11:15:25 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-06-14 11:15:25 +0100 |
| commit | 86649e6b44877df3c5d0b81ed2f97aaa063a6f1d (patch) | |
| tree | 700029b1021d4702e4877dd0c0355d3443df3865 /core/compress/gzip | |
| parent | 3ca887a60ae1e681fd441edfe17805df97b6d6a3 (diff) | |
Core library clean up: Make range expressions more consistent and replace uses of `..` with `..=`
Diffstat (limited to 'core/compress/gzip')
| -rw-r--r-- | core/compress/gzip/gzip.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/compress/gzip/gzip.odin b/core/compress/gzip/gzip.odin index 2b5e513c7..82488a5a8 100644 --- a/core/compress/gzip/gzip.odin +++ b/core/compress/gzip/gzip.odin @@ -288,11 +288,11 @@ load_from_stream :: proc(stream: io.Stream, buf: ^bytes.Buffer, allocator := con payload_crc_b: [4]u8; payload_len_b: [4]u8; - for i in 0..3 { + for _, i in payload_crc_b { payload_crc_b[i] = u8(compress.read_bits_lsb(&ctx, 8)); } payload_crc := transmute(u32le)payload_crc_b; - for i in 0..3 { + for _, i in payload_len_b { payload_len_b[i] = u8(compress.read_bits_lsb(&ctx, 8)); } payload_len := int(transmute(u32le)payload_len_b); |