summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-20 15:39:22 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-20 15:39:22 +0000
commit2f34a02e9cb6b5a420479c3a078afaf2f42331fe (patch)
tree618432fe1c0ab9424226b312a6bb45540355008e /ext/syck
parent96bcddcd362b057e3f782d00d339a23a0c595dcd (diff)
* ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
"local variable 'size' used without having been initialized". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/rubyext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index f7fcbdb..1c6a087 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -828,10 +828,10 @@ syck_parser_bufsize_set( self, size )
SyckParser *parser;
if ( rb_respond_to( size, s_to_i ) ) {
- int size = NUM2INT(rb_funcall(size, s_to_i, 0));
+ int n = NUM2INT(rb_funcall(size, s_to_i, 0));
Data_Get_Struct(self, SyckParser, parser);
- parser->bufsize = size;
+ parser->bufsize = n;
}
return self;
}