diff options
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index dfbda8d43e3..38cce14fd62 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1401,7 +1401,9 @@ when printing the error message." | |||
| 1401 | (defun byte-compile-callargs-warn (form) | 1401 | (defun byte-compile-callargs-warn (form) |
| 1402 | (let* ((def (or (byte-compile-fdefinition (car form) nil) | 1402 | (let* ((def (or (byte-compile-fdefinition (car form) nil) |
| 1403 | (byte-compile-fdefinition (car form) t))) | 1403 | (byte-compile-fdefinition (car form) t))) |
| 1404 | (sig (byte-compile--function-signature (or def (car form)))) | 1404 | (sig (cond (def (byte-compile--function-signature def)) |
| 1405 | ((subrp (symbol-function (car form))) | ||
| 1406 | (subr-arity (symbol-function (car form)))))) | ||
| 1405 | (ncall (length (cdr form)))) | 1407 | (ncall (length (cdr form)))) |
| 1406 | ;; Check many or unevalled from subr-arity. | 1408 | ;; Check many or unevalled from subr-arity. |
| 1407 | (if (and (cdr-safe sig) | 1409 | (if (and (cdr-safe sig) |