Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-js_xpconnect_src_XPCConvert.cpp,v 1.1 2016/02/14 07:30:54 ryoon Exp $
Suggested workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1147837
Avoids a crash on big endian 64 bit architectures.
--- js/xpconnect/src/XPCConvert.cpp.orig 2015-03-21 04:42:37.000000000 +0100
+++ js/xpconnect/src/XPCConvert.cpp 2015-03-30 13:49:16.000000000 +0200
@@ -134,7 +134,7 @@
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));