From: David Means <dmeans@the-means.net>
To: cygwin@cygwin.com
Subject: Re: Strange behavior
Date: Sat, 02 Mar 2002 15:09:00 -0000 [thread overview]
Message-ID: <1015110579.11661.12.camel@milo> (raw)
In-Reply-To: <003501c1c22f$cd7c9570$0300000a@FSHPXP>
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]
I don't think it's cygwin.
Looks like something in gnu (complier or libs?).
David
---
72$ uname -a && g++ --version && ./rtest2
Linux milo 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
2.96
5/4
1
-1/4
1
3/8
1
2/3
0
319$ uname -a && g++ --version ; ./rtest2
SunOS opus 5.7 Generic sun4u sparc SUNW,Ultra-1
2.95.3
5/4
1
-1/4
1
3/8
1
2/3
1
On Sat, 2002-03-02 at 16:18, Chuck Allison wrote:
> I have a simple Rational number class and have discovered weird behavior
> with Cygwin's g++. If you look at the very short main program in file
> rtest2.cpp, you will see by the output that g++ get's the wrong answer for
>
> r1 / r2 == Rational(2,3); // should be true
>
> even though it prints as 2/3! Borland and Microsoft get it right. Any ideas?
> All code atached.
>
> Thanks.
>
> -- Chuck Allison (The Harmonious CodeSmith)
> -- Senior Editor, C/C++ Users Journal
> -- cda@freshsources.com
>
> ----
>
{ snip }
--
No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 240 bytes --]
next prev parent reply other threads:[~2002-03-02 23:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-02 13:18 Chuck Allison
2002-03-02 15:09 ` David Means [this message]
2002-03-03 18:05 Ross Smith
2002-03-03 18:32 ` Randall R Schulz
2002-03-03 20:49 ` Richard R. Malloy
2002-03-03 21:08 ` Chuck Allison
2002-03-03 21:26 Robert Collins
2002-03-03 21:42 Gareth Pearce
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=1015110579.11661.12.camel@milo \
--to=dmeans@the-means.net \
--cc=cygwin@cygwin.com \
/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).