NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/57250 CVS commit: src/tests/lib/libc/stdio



The following reply was made to PR lib/57250; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: PR/57250 CVS commit: src/tests/lib/libc/stdio
Date: Wed, 5 Apr 2023 17:25:42 +0200

 There is one minor detail still different between the architectures
 where double != long double and the ones where it is identical:
 
 	errno is set only when the types are identical.
 
 The test program from the PR prints on i386:
 
 > ./a.out 1e309
 a.out: infinite
 inf
 
 but on macppc:
 
 > ./a.out 1e309
 a.out: errno: Result too large or too small
 a.out: infinite
 inf
 
 
 I am not sure which variant is more correct :-)
 
 Martin
 


Home | Main Index | Thread Index | Old Index