From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 3A5EE1A007A6 for ; Sun, 20 Mar 2016 20:53:35 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 4F953B5D868 for ; Sun, 20 Mar 2016 21:29:58 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id D989418CC7B9 for ; Sun, 20 Mar 2016 21:29:58 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E693712051E; Sun, 20 Mar 2016 21:29:57 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 0CF1B1204EB for ; Sun, 20 Mar 2016 21:29:54 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=3GoFxqTF9qjWLbThTjL258Svldw=; b=Wn4hchyNtuDWqDEUxS UA0BsIYZpK4xl7pX/gbEpOmwOzVHk/MJMGNsRmpUwiVhQ6hknNHkRb6oX0QygeFY aTEF9uc3UVhncCTkx0TcFBEED96Eoa8R8W/Xh1IvA0xgjACxFq6W82MAuIPxRZil kXZ+d4Kj+wJxR+tomy1K9AipA= Received: by filter0443p1mdw1.sendgrid.net with SMTP id filter0443p1mdw1.30892.56EE97BEF 2016-03-20 12:29:50.189667134 +0000 UTC Received: from herokuapp.com (ec2-23-23-52-107.compute-1.amazonaws.com [23.23.52.107]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id Bxk0JnQ_TNOVLdOI576SPQ for ; Sun, 20 Mar 2016 12:29:50.206 +0000 (UTC) Date: Sun, 20 Mar 2016 12:29:50 +0000 From: fanantoxa@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 49084 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 12203 X-Redmine-Issue-Author: fanantoxa X-Redmine-Sender: fanantoxa 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5bwtVNmj3feYfU8Vfnb/JpKiejN/T0vABRM2 hyr8es9QErlzjQVQTcXRx1r7pgB/hiEkjoqaYSD/z0WS6meMEw1JR7F20htGBTXM1atCxxJ8ISmz0D y3pBj7ySF5cSxXtv9Xt3/hra5Z+Oj+AkvluR/tYvJ3C2+CsMvfnHsOtPow== X-ML-Name: ruby-core X-Mail-Count: 74474 Subject: [ruby-core:74474] [Ruby trunk Bug#12203] 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 reported by Anton Sivakov. ---------------------------------------- Bug #12203: dumper.c static int yaml_emitter_dump_scalar two variables have the same value https://bugs.ruby-lang.org/issues/12203 * Author: Anton Sivakov * Status: Open * Priority: Normal * Assignee: * 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/