From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID,T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 704431FAE5 for ; Thu, 8 Jun 2017 14:03:36 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id D885C120788; Thu, 8 Jun 2017 23:03:33 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id EB096120770 for ; Thu, 8 Jun 2017 23:03:30 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=e3vAf6KiKtzn/ia07sBQvWl8lW4=; b=vM0LAiolrK8MRz3qs2 l9RndZxs8mdUBlTv+OSZNZLwKI+yO8LfOQUlsZSQWDF8c+tlZqk4VphuFqeDJzhY 6ZdNyS8Y+teF6jftUIHyu1jrY80Vd7UyFt7MAwzyBQ6jKPlDonW+JrMoj8fSI4Ks 1oiLVMogjsTzSFAihVHMinx20= Received: by filter1113p1mdw1.sendgrid.net with SMTP id filter1113p1mdw1-31820-5939592D-2A 2017-06-08 14:03:25.434410221 +0000 UTC Received: from herokuapp.com (ec2-54-211-218-72.compute-1.amazonaws.com [54.211.218.72]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id NC8k6WWbRqWmtWUeHlA01w for ; Thu, 08 Jun 2017 14:03:25.394 +0000 (UTC) Date: Thu, 08 Jun 2017 14:03:25 +0000 From: nobu@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56647 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 12203 X-Redmine-Issue-Author: fanantoxa X-Redmine-Issue-Assignee: tenderlovemaking X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7Ytr5tOUK6vd/Y07siuJvUeCtGOmthvyGi1W H4dCduAMw49KyvALWUD8xNYvj7HGJsUgJmyS01dqmTUDhQZN012A0H0UQmenRSPtKeYZhf1lFMXOOH 8iymH+qVKWgiashwAc1c7iK4L4LYHYxmU+/BtP989LAlQdcaLQvHQTSSAw== X-ML-Name: ruby-core X-Mail-Count: 81621 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 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/