From: nobu@... Date: 2017-06-08T14:03:25+00:00 Subject: [ruby-core:81621] [Ruby trunk Bug#12203][Third Party's Issue] dumper.c static int yaml_emitter_dump_scalar two variables have the same value Issue #12203 has been updated by nobu (Nobuyoshi Nakada). Status changed from Assigned to Third Party's Issue Please report it to the upstream, https://github.com/ruby/psych. ---------------------------------------- Bug #12203: dumper.c static int yaml_emitter_dump_scalar two variables have the same value https://bugs.ruby-lang.org/issues/12203#change-65319 * Author: fanantoxa (Anton Sivakov) * Status: Third Party's Issue * Priority: Normal * Assignee: tenderlovemaking (Aaron Patterson) * Target version: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ~~~ static int yaml_emitter_dump_scalar( ..... int plain_implicit = (strcmp((char *)node->tag, YAML_DEFAULT_SCALAR_TAG) == 0); int quoted_implicit = (strcmp((char *)node->tag, YAML_DEFAULT_SCALAR_TAG) == 0); ~~~ variables 'plain_implicit' and 'quoted_implicit' have the same values. It possible wrong expression or this code can be optimized. -- https://bugs.ruby-lang.org/ Unsubscribe: