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 end
5757 i = 0
5858 while i < bytes.length
59- b = bytes[i]
60- freq[b] = freq[b] + 1
59+ bv = bytes[i]
60+ freq[bv] = freq[bv] + 1
6161 i = i + 1
6262 end
6363