[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sqrt with negative arg.

From: Eli Zaretskii
Subject: Re: sqrt with negative arg.
Date: Fri, 02 Jan 2004 11:27:34 +0200

> From: Andreas Schwab <address@hidden>
> Date: Thu, 01 Jan 2004 18:22:22 +0100
> This is a bug either in sqrt or in matherr on your system.  ISO C
> requires that a domain error occurs when sqrt is called with a
> negative argument, and Emacs depends on matherr (when it is supported)
> to be called.  Apparently, the availability of matherr is not enough
> to guarantee this.

Actually, Emacs will do fine even if the math function only sets errno
when such problems happen.  If matherr is available, it will be used,
but it isn't necessary.  The macros on floatfns.c tell the details.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]