Commit 3ce7e440
3ce7e440e798Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified
Description
fix: rename local in bm_huffman to avoid type collision
b was used as both a byte value (bytes[i], int) and a Node
(queue[min2]). Spinel unifies to one C type per local per method and
then warns at the other site. Rename the byte-value use to bv.
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Details
- Commit
- 3ce7e440e798
- Parent
- a47eaa8bd93e
benchmark/bm_huffman.rbmodifiedView file
@@ -56,8 +56,8 @@
5656
end5757
i = 05858
while i < bytes.length59-
b = bytes[i]60-
freq[b] = freq[b] + 159+
bv = bytes[i]60+
freq[bv] = freq[bv] + 16161
i = i + 16262
end6363