From 6b1c4e9f98a3041de843a176bb946ecf500453da Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 4 Nov 2015 07:18:01 +0000 Subject: 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 --- ext/psych/psych_emitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/psych/psych_emitter.c') 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 -- cgit v1.2.3