1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has no

effect unless debug mode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-31 02:30:46 +00:00
parent 8a6c699282
commit 18caf715c9
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 31 11:30:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has no
effect unless debug mode.
Thu Jul 31 10:51:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms which

View file

@ -113,7 +113,9 @@ rb_syck_compile(VALUE self, VALUE port)
syck_parser_implicit_typing( parser, 0 );
syck_parser_taguri_expansion( parser, 0 );
oid = syck_parse( parser );
ASSERT(syck_lookup_sym( parser, oid, &data ));
if (!syck_lookup_sym( parser, oid, &data )) {
rb_raise(rb_eSyntaxError, "root node <%lx> not found", oid);
}
sav = data;
ret = S_ALLOCA_N( char, strlen( sav->buffer ) + 3 );