<div dir="ltr">Hi Piotr,<div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">  double CDECL MSVCRT_atan( double x )<br>
  {<br>
-  if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;<br>
    return atan(x);<br>
  }<br>
</blockquote></span>
I've done a little more testing. The function is not setting errno in INF and -INF case. It does set errno  to EDOM when argument is NAN.<br><br></blockquote><div><br></div><div>Thanks for pointting out! Sorry I missed it. Sending a patch.</div><div><br></div><div>Regards,</div><div>Zheng</div></div><br></div></div>