diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-20 15:39:22 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-20 15:39:22 +0000 |
commit | 38e0c89c35a4b359b53973d96f499f073676c9b0 (patch) | |
tree | 37158a63160798e7c841615ce69ada55fd987757 /ext/syck/rubyext.c | |
parent | d85815fbca1efe4d00fe33bfc916895f884bf52f (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/trunk@7794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/rubyext.c')
-rw-r--r-- | ext/syck/rubyext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c index f7fcbdbafb..1c6a087a0c 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; } |