public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: John Love-Jensen <eljay@adobe.com>
To: Stephen Pisuk <smp@ll.mit.edu>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Float to Int Conversions
Date: Tue, 26 Feb 2002 11:11:00 -0000	[thread overview]
Message-ID: <3C7BC7B8.800EDA9C@adobe.com> (raw)
In-Reply-To: <Pine.GSO.4.44.0202261134320.20318-100000@lager>

Hi Stephen,

According to C++ Programming Language by Stroustrup, section C.6.2.6 --
the behavior is UNDEFINED (implementation dependent) if the truncated
value cannot be represented in the destionation type.

Not what you wanted to hear.  If you want consistent behavior, you'll
have to write a helper subroutine that catches the boundary cases.

--Eljay


  reply	other threads:[~2002-02-26 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-26  8:14 Stephen Pisuk
2002-02-26  8:38 ` John Love-Jensen
2002-02-26  8:42   ` Stephen Pisuk
2002-02-26 11:11     ` John Love-Jensen [this message]
2002-02-26  9:35   ` building on MacOS 10.1.3? sbloch

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=3C7BC7B8.800EDA9C@adobe.com \
    --to=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=smp@ll.mit.edu \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).