Skip to content

Commit

Permalink
Merge pull request #38 from flash-gordon/mutable-strings-warnings
Browse files Browse the repository at this point in the history
Fix warnings about mutating string literals
  • Loading branch information
grosser authored Jan 5, 2025
2 parents 757c5c9 + 8e7aa15 commit d2cc959
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
fail-fast: false
matrix:
ruby:
- '3.4'
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
Expand Down
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ GEM
remote: https://rubygems.org/
specs:
bump (0.10.0)
maxitest (4.1.0)
minitest (>= 5.0.0, < 5.15.0)
minitest (5.14.4)
maxitest (5.8.0)
minitest (>= 5.14.0, < 5.26.0)
minitest (5.25.4)
rake (13.0.6)

PLATFORMS
arm64-darwin-21
arm64-darwin-24
x86_64-linux

DEPENDENCIES
Expand Down
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 d2cc959

Please sign in to comment.