Farid Zaripov wrote:
From: Martin Sebor [mailto:[EMAIL PROTECTED]
To: [email protected]
Subject: Re: [jira] Created: (STDCXX-862) [Sun C++ 5.9] 0.char test failed due to different binary 
representation of "long double ld1 = 0" and "long double ld2 = 0."

Farid Zaripov (JIRA) wrote:
[Sun C++ 5.9] 0.char test failed due to different binary representation of "long double ld1 = 
0" and "long double ld2 = 0."

This feels like compiler bug, wouldn't you say?

  I don't know. The both long doubles behaves as zero. The only comparing them 
with memcmp() gives the wrong result.

I thought there was just one bit pattern for a positive floating
point 0 in IEE 754, namely all bits clear.

Martin

Reply via email to