pickle broken: can't handle NaN or Infinity under win32

Grant Edwards grante at visi.com
Wed Jun 22 23:05:16 EDT 2005


On 2005-06-23, Grant Edwards <grante at visi.com> wrote:
> On 2005-06-23, Tim Peters <tim.peters at gmail.com> wrote:
>
>> C89 doesn't define the result of that, but "most" C compilers these
>> days will create a negative 0.
>>
>>> and (double)0x80000000 doesn't work,
>
> I think you meant something like
>
>   float f;
>   *((uint32_t*)&d) = 0xNNNNNNNN;

    *((uint32_t*)&f) = 0xNNNNNNNN;

It doesn't matter how many times one proofreads things like
that...

-- 
Grant Edwards                   grante             Yow!  I will establish
                                  at               the first SHOPPING MALL in
                               visi.com            NUTLEY, New Jersey...



More information about the Python-list mailing list