Skip to content

Commit

Permalink
Use mutable strings
Browse files Browse the repository at this point in the history
This fixes warnings from ruby 3.4.1 about freezing string literals in the next version
  • Loading branch information
flash-gordon committed Jan 5, 2025
1 parent 6b5eece commit 8e7aa15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rchardet/mbcharsetprober.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize
super
@distributionAnalyzer = nil
@codingSM = nil
@lastChar = "\x00\x00"
@lastChar = +"\x00\x00"
end

def reset
Expand All @@ -45,7 +45,7 @@ def reset
if @distributionAnalyzer
@distributionAnalyzer.reset()
end
@lastChar = "\x00\x00"
@lastChar = +"\x00\x00"
end

def get_charset_name
Expand Down

0 comments on commit 8e7aa15

Please sign in to comment.