diff options
| author | Paul Eggert | 2018-08-28 09:51:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-28 09:52:12 -0700 |
| commit | 5cb057a854a848be85dc2b81f6497964f5a93dbb (patch) | |
| tree | a140c670a5a1b91eb3191eb55ca2fc1cca5039f6 /src/floatfns.c | |
| parent | c39ca701d3ffa3a7fcb987170436ad441e8f8ad6 (diff) | |
| download | emacs-5cb057a854a848be85dc2b81f6497964f5a93dbb.tar.gz emacs-5cb057a854a848be85dc2b81f6497964f5a93dbb.zip | |
Fix Fnatnump typos
Problem reported by Glenn Morris in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00946.html
* src/floatfns.c (Fexpt):
* src/xselect.c (cons_to_x_long):
Don't assume Lisp_Object values are scalars.
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index 8008929be61..77e20d5640b 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -210,7 +210,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0, | |||
| 210 | 210 | ||
| 211 | /* Common Lisp spec: don't promote if both are integers, and if the | 211 | /* Common Lisp spec: don't promote if both are integers, and if the |
| 212 | result is not fractional. */ | 212 | result is not fractional. */ |
| 213 | if (INTEGERP (arg1) && Fnatnump (arg2)) | 213 | if (INTEGERP (arg1) && !NILP (Fnatnump (arg2))) |
| 214 | return expt_integer (arg1, arg2); | 214 | return expt_integer (arg1, arg2); |
| 215 | 215 | ||
| 216 | return make_float (pow (XFLOATINT (arg1), XFLOATINT (arg2))); | 216 | return make_float (pow (XFLOATINT (arg1), XFLOATINT (arg2))); |