aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-15 07:55:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-15 07:55:08 +0000
commit4a465ed38f839ef97f442e6b0bc00ac3ea456394 (patch)
tree4c83920b97ecad2a938abff5e3844d590aab4b49 /encoding.c
parent11d5096bc5b45252fd6a431094db15c1a172ca77 (diff)
downloadruby-4a465ed38f839ef97f442e6b0bc00ac3ea456394.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.c1
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));