emacs-devel
[Top][All Lists]
Advanced

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

Re: calc: E command hangs Emacs.


From: Michaël Cadilhac
Subject: Re: calc: E command hangs Emacs.
Date: Mon, 01 Oct 2007 11:17:53 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

address@hidden (Michaël Cadilhac) writes:

> We can then consider installing the following patch which fixes an
> overflow of expt (namely that (expt 10.0 256) yields 0) on some system
                                      Read -256.
> that implement pow(3) without an ERANGE error (e.g., Cygwin).
>
>
> --- floatfns.c        26 Jul 2007 07:27:51 +0200      1.94
> +++ floatfns.c        21 Sep 2007 11:22:16 +0200      

> +  IN_FLOAT2 (f3 = pow (f1, f2), "expt", arg1, arg2);
> +  /* Check for overflow in the result.  */
> +  if (f1 != 0.0 && f3 == 0.0)
> +    range_error ("expt", arg1);
> +  return make_float (f3);

Installed.

-- 
 |   Michaël `Micha' Cadilhac       |  Perhaps we should start               |
 |   http://michael.cadilhac.name   |     making protest releases            |
 |   JID/MSN:                       |   before doing a fall release.         |
 `----  address@hidden  |          -- David Kastrup         -  --'

Attachment: pgpjNxeEqjt8K.pgp
Description: PGP signature


reply via email to

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