[Mono-list] One line fix to sysmath.c

Richard Torkar richard.torkar@htu.se
Tue, 19 Mar 2002 09:17:37 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C1CF26.E9975340
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

--- mono/mono/metadata/sysmath.c        Tue Mar 19 02:31:44 2002
+++ sysmath.c   Tue Mar 19 08:02:32 2002
@@ -110,7 +110,7 @@
 ves_icall_System_Math_Sqrt (gdouble x)
 {
        if (x < 0)
-               return NAN;
+               return MONO_NAN;

        return sqrt (x);
 }


Please apply

/Richard

------=_NextPart_000_0005_01C1CF26.E9975340
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>---=20
mono/mono/metadata/sysmath.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Tue Mar=20
19 02:31:44 2002<BR>+++ sysmath.c&nbsp;&nbsp; Tue Mar 19 08:02:32 =
2002<BR>@@=20
-110,7 +110,7 @@<BR>&nbsp;ves_icall_System_Math_Sqrt (gdouble=20
x)<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (x &lt;=20
0)<BR>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
return=20
NAN;<BR>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
return MONO_NAN;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return=20
sqrt (x);<BR>&nbsp;}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please apply</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/Richard</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C1CF26.E9975340--