[PATCH 03/10] jscript: Added NaN value implementation.

Jacek Caban jacek at codeweavers.com
Wed Oct 15 16:50:30 CDT 2008


Alexandre Julliard wrote:
> I'd suggest to take advantage of the variant union instead of copying
> all these glibc definitions. Something like
>
> #ifdef NAN
>     V_R8(&vt) = NAN;
> #else
>     V_I8(&vt) = nan_magic_pattern;
> #endif
>   

The problem is that nan_magic_pattern would have to be 8 bytes and AFAIK 
there is no portable way to do it without ugly casts like in attached patch.

Thanks,
    Jacek
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-jscript-Added-NaN-value-implementation.patch
Url: http://www.winehq.org/pipermail/wine-devel/attachments/20081015/3efe409a/attachment.txt 


More information about the wine-devel mailing list