Skip to content

Commit

Permalink
use String#b instead of force_encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyg committed Oct 29, 2024
1 parent b410802 commit c6f6ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metasm/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ def <<(other)
else
fill
other = other.b if other.kind_of?(String)
if @data.empty?; @data = other.dup
if @data.empty?; @data = other
elsif other.empty?
elsif not @data.kind_of?(String); @data = @data.to_str << other
else @data << other
Expand Down

0 comments on commit c6f6ca8

Please sign in to comment.