diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-15 07:55:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-15 07:55:08 +0000 |
commit | 28c42b4c25c48f65cd559018678a5cf34d387c24 (patch) | |
tree | 4c83920b97ecad2a938abff5e3844d590aab4b49 /encoding.c | |
parent | e262b29ed00fc09f64bd809d84233bdc56d21bab (diff) | |
download | ruby-28c42b4c25c48f65cd559018678a5cf34d387c24.tar.gz |
encoding.c: drop dummy encoding flag
* encoding.c (enc_autoload): drop dummy encoding flag from
the loaded encoding index. this flag is used only in this
source.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c index fd3344b0ea..b4ee0c8de2 100644 --- a/encoding.c +++ b/encoding.c @@ -677,6 +677,7 @@ enc_autoload(rb_encoding *enc) i = enc->ruby_encoding_index; enc_register_at(i & ENC_INDEX_MASK, rb_enc_name(enc), base); ((rb_raw_encoding *)enc)->ruby_encoding_index = i; + i &= ENC_INDEX_MASK; } else { i = load_encoding(rb_enc_name(enc)); |