| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <3A746ECA.80D1680E@uoguelph.ca> |
| Date: | Sun, 28 Jan 2001 14:11:06 -0500 |
| From: | Gerald Jansen <gjansen AT uoguelph DOT ca> |
| X-Mailer: | Mozilla 4.76 [en] (Windows NT 5.0; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | cygwin AT sources DOT redhat DOT com |
| Subject: | cygwin gcc 2.95-2 printf bug |
There is a bug printing near-zero floating point numbers in 2.95.2.
main() {
printf("[%5.2f] [%5.2f]\n",0.01,-0.01);
printf("[%5.2f] [%5.2f]\n",0.001,-0.001);
exit(0);
}
Produces:
[ 0.01] [-0.01]
[ 0] [-0]
gcc -v on my Windows 2000 machine gives:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/specs
gcc version 2.95.2-6 19991024 (cygwin experimental)
The correct result occurs on two other platforms:
Reading specs from
/usr/local/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/specs
gcc version 2.8.1
and:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
Gerald Jansen
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |