pkgsrc/mail/thunderbird52/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp
ryoon 52f373d9e6 mail/thunderbird52: import thunderbird52-52.9.1nb3
Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version uses the gtk2 toolkit.
2018-12-16 08:29:48 +00:00

13 lines
621 B
C++

$NetBSD: patch-mozilla_js_xpconnect_src_XPCConvert.cpp,v 1.1 2018/12/16 08:29:48 ryoon Exp $
--- mozilla/js/xpconnect/src/XPCConvert.cpp.orig 2016-04-07 21:33:28.000000000 +0000
+++ mozilla/js/xpconnect/src/XPCConvert.cpp
@@ -134,7 +134,7 @@ XPCConvert::NativeData2JS(MutableHandleV
d.setNumber(*static_cast<const float*>(s));
return true;
case nsXPTType::T_DOUBLE:
- d.setNumber(*static_cast<const double*>(s));
+ d.setNumber(CanonicalizeNaN(*static_cast<const double*>(s)));
return true;
case nsXPTType::T_BOOL :
d.setBoolean(*static_cast<const bool*>(s));