diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-11-27 19:47:15 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-11-27 19:47:15 +0900 |
commit | 307c9e3db220c17e8e202a25223acacd4e1baf81 (patch) | |
tree | eaee060f5700cd9b2ea17ef2b78491ecd1f1b76e /ext | |
parent | 462a9a0959518a24fb71c6c5094b1c580ea6c005 (diff) | |
download | psych-307c9e3db220c17e8e202a25223acacd4e1baf81.tar.gz |
Picked r60919
https://github.com/ruby/ruby/commit/2d9f20e1cfdc7532a8acef4da9b8b7a788c4e99a
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/psych_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/psych/psych_parser.c b/ext/psych/psych_parser.c index 4b18c94..ca196dd 100644 --- a/ext/psych/psych_parser.c +++ b/ext/psych/psych_parser.c @@ -292,6 +292,9 @@ static VALUE parse(int argc, VALUE *argv, VALUE self) } while(!done) { + VALUE event_args[5]; + VALUE start_line, start_column, end_line, end_column; + if(!yaml_parser_parse(parser, &event)) { VALUE exception; @@ -302,9 +305,6 @@ static VALUE parse(int argc, VALUE *argv, VALUE self) rb_exc_raise(exception); } - VALUE event_args[5]; - VALUE start_line, start_column, end_line, end_column; - start_line = INT2NUM((long)event.start_mark.line); start_column = INT2NUM((long)event.start_mark.column); end_line = INT2NUM((long)event.end_mark.line); |