ruby-changes:56802
From: Hiroshi <ko1@a...>
Date: Sun, 4 Aug 2019 20:13:24 +0900 (JST)
Subject: [ruby-changes:56802] Hiroshi SHIBATA: 39622232c7 (master): Suppress warnings of bundled libyaml.
https://git.ruby-lang.org/ruby.git/commit/?id=39622232c7 From 39622232c7542d062f79277a11f6b8b6b6cfd994 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sun, 4 Aug 2019 20:12:43 +0900 Subject: Suppress warnings of bundled libyaml. diff --git a/ext/psych/yaml/loader.c b/ext/psych/yaml/loader.c index db8501a..aa75cf5 100644 --- a/ext/psych/yaml/loader.c +++ b/ext/psych/yaml/loader.c @@ -300,7 +300,7 @@ yaml_parser_load_scalar(yaml_parser_t *parser, yaml_event_t *first_event) https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/loader.c#L300 if (!PUSH(parser, parser->document->nodes, node)) goto error; - index = parser->document->nodes.top - parser->document->nodes.start; + index = (int)parser->document->nodes.top - (int)parser->document->nodes.start; if (!yaml_parser_register_anchor(parser, index, first_event->data.scalar.anchor)) return 0; @@ -347,7 +347,7 @@ yaml_parser_load_sequence(yaml_parser_t *parser, yaml_event_t *first_event) https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/loader.c#L347 if (!PUSH(parser, parser->document->nodes, node)) goto error; - index = parser->document->nodes.top - parser->document->nodes.start; + index = (int)parser->document->nodes.top - (int)parser->document->nodes.start; if (!yaml_parser_register_anchor(parser, index, first_event->data.sequence_start.anchor)) return 0; @@ -410,7 +410,7 @@ yaml_parser_load_mapping(yaml_parser_t *parser, yaml_event_t *first_event) https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/loader.c#L410 if (!PUSH(parser, parser->document->nodes, node)) goto error; - index = parser->document->nodes.top - parser->document->nodes.start; + index = (int)parser->document->nodes.top - (int)parser->document->nodes.start; if (!yaml_parser_register_anchor(parser, index, first_event->data.mapping_start.anchor)) return 0; diff --git a/ext/psych/yaml/scanner.c b/ext/psych/yaml/scanner.c index 359f107..204593d 100644 --- a/ext/psych/yaml/scanner.c +++ b/ext/psych/yaml/scanner.c @@ -1227,7 +1227,7 @@ yaml_parser_roll_indent(yaml_parser_t *parser, ptrdiff_t column, https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L1227 return 0; } - parser->indent = column; + parser->indent = (int)column; /* Create a token and insert it into the queue. */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/