aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 07:18:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 07:18:01 +0000
commit6b1c4e9f98a3041de843a176bb946ecf500453da (patch)
tree664a5b8fb85a73fa2083e49bf8c4982e93586969 /ext/psych
parent25c5704436b345f4ad7b81385f2faf6ffd3dd5f8 (diff)
downloadruby-6b1c4e9f98a3041de843a176bb946ecf500453da.tar.gz
ext: adjust index type
* ext: use long for index instead of int and RARRAY_LENINT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych')
-rw-r--r--ext/psych/psych_emitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/psych_emitter.c b/ext/psych/psych_emitter.c
index f77d8d7d86..ce6f63d16b 100644
--- a/ext/psych/psych_emitter.c
+++ b/ext/psych/psych_emitter.c
@@ -159,7 +159,7 @@ static VALUE start_document(VALUE self, VALUE version, VALUE tags, VALUE imp)
}
if(RTEST(tags)) {
- int i = 0;
+ long i = 0;
#ifdef HAVE_RUBY_ENCODING_H
rb_encoding * encoding = rb_utf8_encoding();
#endif