Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: 'Daniel Jacobowitz' <drow@false.org>
To: Pierre Muller <muller@ics.u-strasbg.fr>
Cc: gdb-patches@sourceware.org
Subject: Re: [Patch] p-exp.y: Typecast left operand of BINOP_DIV to long 	double
Date: Fri, 01 Feb 2008 14:16:00 -0000	[thread overview]
Message-ID: <20080201141546.GA28371@caradoc.them.org> (raw)
In-Reply-To: <003801c864a4$1866bee0$49343ca0$@u-strasbg.fr>

On Fri, Feb 01, 2008 at 08:28:52AM +0100, Pierre Muller wrote:
> > It looks OK to me.  Does the type of the left operand completely
> > determine the type of the operation, or do you need to worry about the
> > type of the right-hand exp too before you cast?
> 
>   But how can I do this?
> It is still not really clear to me how I can 
> insert a typecast to left operand, only after
> right operand has been parsed. 
>   It would indeed be better to only do the typecast if both are integral
> types.

You could cast the right operand instead; wouldn't that work?

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-02-01 14:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28 17:08 Pierre Muller
2008-01-31 22:43 ` Daniel Jacobowitz
2008-02-01  7:29   ` Pierre Muller
2008-02-01 14:16     ` 'Daniel Jacobowitz' [this message]
2008-02-01 15:55       ` Pierre Muller
2008-02-01 17:00         ` Doug Evans
2008-02-01 17:04           ` Daniel Jacobowitz

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=20080201141546.GA28371@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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