[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] fix KJS crash on some more strict platforms
From:       Harri Porten <porten () froglogic ! com>
Date:       2003-12-17 10:32:31
[Download RAW message or body]

On Wed, 17 Dec 2003, Helge Deller wrote:

> > > And this is exactly what my proposed patch is about. We try to read a
> > > double from the pointer which is &char[8] and this is not guaranteed to
> > > work: const double NaN = *(const double*) NaN_Bytes;
> >
> > Yes, but that has nothing to do w/using a union to initialize it.
>
> Ok, agreed. I'm happy with either solution which fixes the bug as long
> as it gets fixed :-)

I'm fine with any of the proposed (and proven to work;) solutions. Apart
from the STL functions.

The 64 bit integer way would work with "long long" and the LL suffix for
the literals. On Unix, Q_INT64 is nothing else than that.

Harri.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic