[PATCH] fix KJS crash on some more strict platforms
Harri Porten
porten at froglogic.com
Wed Dec 17 10:32:31 GMT 2003
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.
More information about the kde-core-devel
mailing list