* 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
This commit is contained in:
parent
d85815fbca
commit
38e0c89c35
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jan 21 00:37:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
|
* ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
|
||||||
|
"local variable 'size' used without having been initialized".
|
||||||
|
|
||||||
Wed Jan 19 18:02:19 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Jan 19 18:02:19 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
|
* lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
|
||||||
|
@ -828,10 +828,10 @@ syck_parser_bufsize_set( self, size )
|
|||||||
SyckParser *parser;
|
SyckParser *parser;
|
||||||
|
|
||||||
if ( rb_respond_to( size, s_to_i ) ) {
|
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);
|
Data_Get_Struct(self, SyckParser, parser);
|
||||||
parser->bufsize = size;
|
parser->bufsize = n;
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user