Rename the code_length_code_lengths field.

This commit is contained in:
Nigel Tao committed 2017-07-21 10:09:44 +10:00
1 parent fc74e7e83a
commit 4b7a350a68
4 files changed
+15 -17

No files matched your search

+3 -3
View File
@@ -19,7 +19,7 @@ pub struct decoder?(
bits u32,
n_bits u32,
code_length_code_lengths[19] u8[..7],
code_lengths[19] u8[..7],
// These temporary fields are used to debug work-in-progress code.
wip0 u32,
@@ -103,13 +103,13 @@ pri func decoder.decode_dynamic?(dst writer1, src reader1)() {
n_bits += 8
}
assert i < 19 via "a < b: a < c; c <= b"(c:hclen)
this.code_length_code_lengths[code_order[i]] = (bits & 0x07) as u8
this.code_lengths[code_order[i]] = (bits & 0x07) as u8
bits >>= 3
n_bits -= 3
i += 1
}
while i < 19 {
this.code_length_code_lengths[code_order[i]] = 0
this.code_lengths[code_order[i]] = 0
i += 1
}