You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Runtime/Library/JavascriptNumber.inl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ namespace Js
147
147
148
148
inline Var JavascriptNumber::ToVar(double value)
149
149
{
150
-
uint64 val = *(uint64*)&value;
150
+
constuint64 val = ToSpecial(value);
151
151
AssertMsg(!IsNan(value) || ToSpecial(value) == k_NegativeNan || ToSpecial(value) == 0x7FF8000000000000ull, "We should only produce a NaN with this value");
0 commit comments