• Paul Eggert's avatar
    Don’t signal overflow for (expt 1 bignum) · 5ab29400
    Paul Eggert authored
    Similarly for (expt 0 bignum) and (expt -1 bignum).
    The result is always a -1, 0 or 1, so do not signal overflow.
    * src/data.c (expt_integer): Do not signal an overflow if
    -1 <= X <= 1.  Be clearer about when overflow is signaled.
    * test/src/floatfns-tests.el (bignum-expt): Test this.
    5ab29400
data.c 116 KB