Though I suppose another view might be: can you judge the assignment to be successful, if you can never get the value you assigned, back, without it having been corrupted.

Yes - how do we conclusively determine whether the bug is in the assigning, or in the retrieving ?
I've been approaching this in a number of different ways, using POSIX, Inline::C and pack/unpack and it's always the same result.
On the x86 perl, whenever I check the value of the (supposed) SNAN, the output tells me that it's a QNAN. Yet the x64 perl always produces expected results.
It's very strange that identical code that behaves fine on x64 perl breaks on x86 perl - given that both of those perls have an ivtype of "long long" and an nvtype of "double".

Just now I've built x86 latest blead (5.25.2) with SvNVX() modified such that the addition of -0.0 is removed.
But it has made no difference.

However, I notice that the SvNVX macro that adds -0.0 is in an #ifdef PERL_DEBUG_COW block and I don't know if PERL_DEBUG_COW is defined.
I suspect that it's not defined because the test suite still produces the same results.

I should just file the bug report and let 'em work it out.

Cheers,
Rob

In reply to Re^9: unintentional conversion of signaling NaN to quiet NaN by syphilis
in thread unintentional conversion of signaling NaN to quiet NaN by pryrt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.