lib/bindata/int.rb in bindata-2.2.0 vs lib/bindata/int.rb in bindata-2.3.0
- old
+ new
@@ -102,10 +102,10 @@
parts = (0 ... nwords).collect do |i|
"(ints.at(#{idx[i]}) << #{bits_per_word(nbits) * i})"
end
parts[0].sub!(/ << 0\b/, "") # Remove " << 0" for optimisation
- assemble_str = parts.join(" + ")
+ parts.join(" + ")
end
def create_to_binary_s_code(nbits, endian, signed)
# special case 8bit integers for speed
return "(val & 0xff).chr" if nbits == 8