cproj.c and cprojf.c typo bug report

Corinna Vinschen vinschen@redhat.com
Fri Mar 11 21:52:00 GMT 2011


On Mar  1 16:43, Jeff Johnston wrote:
> On 03/01/2011 04:07 PM, Aaron Myles Landwehr wrote:
> >Hey all,
> >There appears to be two typos in newlib:
> >
> >newlib/libm/complex/cproj.c:96&
> >newlib/libm/complex/cprojf.c:58 contain a typo as follows:
> >
> >    if (isinf(creal(z) || isinf(cimag(z)))) {
> >
> >if I'm not mistaken it should be:
> >
> >   if (isinf(creal(z)) || isinf(cimag(z))) {
> >
> >Thanks,
> >Aaron Landwehr
> 
> You are correct.  Patch checked in under your name.

FYI: I reported the bug to the NetBSD project, from which we took the
complex functions.  They still suffer from the same problem.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Newlib mailing list