www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/03/22:11:45

Date: Tue, 3 Jun 1997 22:09:48 -0400 (EDT)
From: Philip Ibis <pibis AT host DOT hawk DOT igs DOT net>
To: djgpp AT delorie DOT com
Subject: Possible bug?
Message-ID: <Pine.BSI.3.91.970603215937.1369A-100000@host.hawk.igs.net>
MIME-Version: 1.0

Hi there. 

DJGPP is a godsend. 

But, I've found something that might qualify as a bug, and I was 
wondering if it really is.... 

I've looked at the recommended places, and found no mention of it. But I 
suppose its easy to miss.

It might be due to the fact that I'm using v2.00, if so, then, oops.

Anyways... The following program gives my system a wedgie.

---- snip snip ---

#include <stdio.h>
#include <string.h>

int main(void)
{
  double n;

  memset(&n,0xFF,sizeof(double));  /* contrived, sure */
  printf("%f\n",n);
}

---- snip snip ---

It should print NaN, judging by doprnt.c, but does not. Well, it did when 
I compiled it like: gcc myprog.c doprnt.c.

Please respond via email, as the nntp server out here is dead. 

Thanks in advance....

Phil

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019