linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christopher Li <sparse@chrisli.org>
To: Thomas Schmid <Thomas.Schmid@br-automation.com>
Cc: Josh Triplett <josht@linux.vnet.ibm.com>, linux-sparse@vger.kernel.org
Subject: Re: Initializing float variables without type suffix
Date: Thu, 5 Feb 2009 20:15:37 -0800	[thread overview]
Message-ID: <70318cbf0902052015i387c5e18w475704b290904e61@mail.gmail.com> (raw)
In-Reply-To: <OFC65EA87B.BAADFE01-ONC1257553.004CCDB9-C1257553.00522B4E@br-automation.com>

On Wed, Feb 4, 2009 at 6:57 AM, Thomas Schmid
<Thomas.Schmid@br-automation.com> wrote:
> Hello,
>
> i think i found an error, when float variables are initialized.
> Parsing the line
>
> float var = 1.2345;
>
> gets casted with the function cast_to(). It seems that cast_to() doesn't
> make double to float casts.

cast_to() seems fine.

In expanding stage, cast_value() did not cast the constant
correctly.

Chris

  reply	other threads:[~2009-02-06  4:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 17:31 Documentation? Anywhere? Ben Greenberg
2008-07-24 22:23 ` Josh Triplett
2009-02-04 14:57   ` Initializing float variables without type suffix Thomas Schmid
2009-02-06  4:15     ` Christopher Li [this message]
2009-02-06 12:51       ` [PATCH] Fix implicit cast to float (Was:Re: Initializing float variables without type suffix) Thomas Schmid
2009-02-09  7:37         ` Christopher Li
2009-02-09 13:38           ` Antwort: " Thomas Schmid
2009-02-09 19:15             ` Christopher Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=70318cbf0902052015i387c5e18w475704b290904e61@mail.gmail.com \
    --to=sparse@chrisli.org \
    --cc=Thomas.Schmid@br-automation.com \
    --cc=josht@linux.vnet.ibm.com \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).