Skip to content

Commit

Permalink
Merge pull request #142 from HParker/update-for-frozen-string-literal
Browse files Browse the repository at this point in the history
Mark mutable strings as mutable
  • Loading branch information
grosser authored Aug 21, 2024
2 parents c745ce8 + 4c80efc commit fb6baf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fast_gettext/vendor/mofile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class HeaderRev1 < Header
:trans_sysdep_tab_offset
end

MAGIC_BIG_ENDIAN = "\x95\x04\x12\xde"
MAGIC_LITTLE_ENDIAN = "\xde\x12\x04\x95"
MAGIC_BIG_ENDIAN = +"\x95\x04\x12\xde"
MAGIC_LITTLE_ENDIAN = +"\xde\x12\x04\x95"
if "".respond_to?(:force_encoding)
MAGIC_BIG_ENDIAN.force_encoding("ASCII-8BIT")
MAGIC_LITTLE_ENDIAN.force_encoding("ASCII-8BIT")
Expand Down

0 comments on commit fb6baf1

Please sign in to comment.